Skip to content

Commit a16837d

Browse files
committed
fix tests
1 parent 8cb3d00 commit a16837d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

deadlock_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func TestStarvedRLockMultipleReaders(t *testing.T) {
228228
}
229229
})
230230

231-
var a RWMutex
231+
var a DeadlockRWMutex
232232

233233
// Reader 1 holds RLock for the duration of the test.
234234
a.RLock()
@@ -285,7 +285,7 @@ func TestManyReadersFewWriters(t *testing.T) {
285285
Opts.DeadlockTimeout = time.Millisecond * 5000
286286
})
287287

288-
var mu RWMutex
288+
var mu DeadlockRWMutex
289289
var wg sync.WaitGroup
290290

291291
const numReaders = 100
@@ -339,7 +339,7 @@ func TestConcurrentLockOrderDetection(t *testing.T) {
339339
}
340340
})
341341

342-
var a, b Mutex
342+
var a, b DeadlockMutex
343343

344344
// Establish the A→B ordering in the lock-order map.
345345
a.Lock()

0 commit comments

Comments
 (0)