aboutsummaryrefslogtreecommitdiff
path: root/internal/lock/lock_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lock/lock_test.go')
-rw-r--r--internal/lock/lock_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/lock/lock_test.go b/internal/lock/lock_test.go
index 53ce5ca..04023aa 100644
--- a/internal/lock/lock_test.go
+++ b/internal/lock/lock_test.go
@@ -69,12 +69,12 @@ func TestAcquireWaitsUntilReleased(t *testing.T) {
}
}
-// TestAcquireRespectsContextCancellation is fix round 2026-09-12/item 3: a
-// waiting Acquire must not ignore an interrupt - a cancelled ctx must return
-// promptly with ctx.Err(), not poll forever. The unfixed code HANGS rather
-// than fails here, so the wait for Acquire's result is itself bounded with
-// its own hard timeout: a regression must fail this test, not hang the
-// whole suite.
+// TestAcquireRespectsContextCancellation: a waiting Acquire must not
+// ignore an interrupt - a cancelled ctx must return promptly with
+// ctx.Err(), not poll forever. A regression here would HANG rather than
+// fail, so the wait for Acquire's result is itself bounded with its own
+// hard timeout: a regression must fail this test, not hang the whole
+// suite.
func TestAcquireRespectsContextCancellation(t *testing.T) {
path := filepath.Join(t.TempDir(), "dl.lock")
held, err := Acquire(context.Background(), path, false)