- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestFlakyDefault (0.11 sec)
-
src/runtime/race/testdata/select_test.go
} // select statements may introduce // flakiness: whether this test contains // a race depends on the scheduling // (some may argue that the code contains // this race by definition) /* func TestFlakyDefault(t *testing.T) { var x int c := make(chan bool, 1) done := make(chan bool, 1) go func() { select { case <-c: x = 2 default: x = 3 } done <- true }() x = 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 05:25:54 UTC 2020 - 4.1K bytes - Viewed (0)