Skip to content

Commit f3dafc1

Browse files
committed
fix: properly avoid bind mounts in tests
1 parent 1cf2bde commit f3dafc1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

helpers_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ func StreamsCaptureStdout(t testing.TB) (*forge.Streams, *bytes.Buffer) {
3939

4040
func MountShim(t testing.TB) forge.RunOpt {
4141
t.Helper()
42-
if os.Getenv("DAGGER_SESSION_TOKEN") == "" {
43-
return MountShim(t)
42+
if os.Getenv("DAGGER_SESSION_TOKEN") != "" {
43+
return new(forge.RunOpts)
4444
}
45-
return new(forge.RunOpts)
45+
return forge.WithMountShim()
4646
}

0 commit comments

Comments
 (0)