1 parent 8cb3d00 commit a16837dCopy full SHA for a16837d
1 file changed
deadlock_test.go
@@ -228,7 +228,7 @@ func TestStarvedRLockMultipleReaders(t *testing.T) {
228
}
229
})
230
231
- var a RWMutex
+ var a DeadlockRWMutex
232
233
// Reader 1 holds RLock for the duration of the test.
234
a.RLock()
@@ -285,7 +285,7 @@ func TestManyReadersFewWriters(t *testing.T) {
285
Opts.DeadlockTimeout = time.Millisecond * 5000
286
287
288
- var mu RWMutex
+ var mu DeadlockRWMutex
289
var wg sync.WaitGroup
290
291
const numReaders = 100
@@ -339,7 +339,7 @@ func TestConcurrentLockOrderDetection(t *testing.T) {
339
340
341
342
- var a, b Mutex
+ var a, b DeadlockMutex
343
344
// Establish the A→B ordering in the lock-order map.
345
a.Lock()
0 commit comments