mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 06:53:40 +00:00
test: make tests deterministic with -scheduler=threads
This commit is contained in:
committed by
Ron Evans
parent
6faf36fc64
commit
31f7214156
Vendored
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user