Skip to content

Commit bc946cf

Browse files
committed
fix: fix test leaking file
1 parent 9db34a0 commit bc946cf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

integration/docker_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,9 @@ func TestDocker(t *testing.T) {
425425
HostKeyPath: regKeyPath,
426426
Image: integrationtest.UbuntuImage,
427427
TLSPort: strconv.Itoa(registryAddr.Port),
428+
PasswordDir: dir,
429+
Username: "user",
430+
Password: "password",
428431
})
429432

430433
envs := []string{

integration/integrationtest/os.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TmpDir(t *testing.T) string {
1414
// We use os.MkdirTemp as oposed to t.TempDir since the envbox container will
1515
// chown some of the created directories here to root:root causing the cleanup
1616
// function to fail once the test exits.
17-
tmpdir, err := os.MkdirTemp(os.TempDir(), strings.ReplaceAll(t.Name(), "/", "_"))
17+
tmpdir, err := os.MkdirTemp("", strings.ReplaceAll(t.Name(), "/", "_"))
1818
require.NoError(t, err)
1919
t.Logf("using tmpdir %s", tmpdir)
2020
t.Cleanup(func() {

0 commit comments

Comments
 (0)