- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestAfterTimes (0.1 sec)
-
src/time/tick_test.go
// Code should not do this, but some old code dating to Go 1.9 does. // Make sure this doesn't crash. // See go.dev/issue/21874. c := make(chan Time) tick := &Ticker{C: c} tick.Stop() } func TestAfterTimes(t *testing.T) { t.Parallel() // Using After(10ms) but waiting for 500ms to read the channel // should produce a time from start+10ms, not start+500ms. // Make sure it does.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:10:37 UTC 2024 - 14.7K bytes - Viewed (0)