We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52a6972 commit d904868Copy full SHA for d904868
extensions/internal/lock/lock_test.go
@@ -64,14 +64,14 @@ func TestLockError(t *testing.T) {
64
}
65
66
func TestLockTimeout(t *testing.T) {
67
- defer func(d time.Duration) { timeout = d }(timeout)
68
- timeout = 0
69
-
70
p := filepath.Join(t.TempDir(), t.Name())
71
a, err := New(p, 0)
72
require.NoError(t, err)
73
err = a.Lock(ctx)
74
+
+ defer func(d time.Duration) { timeout = d }(timeout)
+ timeout = 0
75
b, err := New(p, 0)
76
77
0 commit comments