Fix broken integration test

This commit is contained in:
Matthias Loibl 2022-06-22 16:33:46 +02:00
parent 153f48f7c2
commit 5f57200d12
No known key found for this signature in database
GPG key ID: 78A796CA74CA38BA

View file

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build integration
// +build integration // +build integration
package main package main
@ -101,7 +102,7 @@ func testInstallCommandWithJsonnetHome(t *testing.T, jsonnetHome string) {
jsonnetFileContent(t, jsonnetfile.File, []byte(initContents)) jsonnetFileContent(t, jsonnetfile.File, []byte(initContents))
// install something, check it writes only if required, etc. // install something, check it writes only if required, etc.
installCommand("", jsonnetHome, tc.URIs, tc.single) installCommand("", jsonnetHome, tc.URIs, tc.single, "")
jsonnetFileContent(t, jsonnetfile.File, tc.ExpectedJsonnetFile) jsonnetFileContent(t, jsonnetfile.File, tc.ExpectedJsonnetFile)
if tc.ExpectedJsonnetLockFile != nil { if tc.ExpectedJsonnetLockFile != nil {
jsonnetFileContent(t, jsonnetfile.LockFile, tc.ExpectedJsonnetLockFile) jsonnetFileContent(t, jsonnetfile.LockFile, tc.ExpectedJsonnetLockFile)