test: make tests deterministic with -scheduler=threads

This commit is contained in:
Ayke van Laethem
2024-11-04 10:16:35 +01:00
committed by Ron Evans
parent 6faf36fc64
commit 31f7214156
5 changed files with 31 additions and 12 deletions
+1 -1
View File
@@ -93,8 +93,8 @@ func acquire(m *sync.Mutex) {
m.Lock()
println("acquired mutex from goroutine")
time.Sleep(2 * time.Millisecond)
println("releasing mutex from goroutine")
m.Unlock()
println("released mutex from goroutine")
}
func sub() {