You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/syncs
Josh Bleecher Snyder 0807e3e2f7 syncs: disable TestWatchMultipleValues on Windows CI builds
The Windows CI machine experiences significant random execution delays.
For example, in this code from watchdog.go:

done := make(chan bool)
go func() {
	start := time.Now()
	mu.Lock()

There was a 500ms delay from initializing done to locking mu.

This test checks that we receive a sufficient number of events quickly enough.
In the face of random 500ms delays, unsurprisingly, the test fails.

There's not much principled we can do about it.
We could build a system of retries or attempt to detect these random delays,
but that game isn't worth the candle.

Skip the test.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
4 years ago
..
locked.go syncs: add AssertLocked 4 years ago
locked_test.go syncs: add AssertLocked 4 years ago
syncs.go syncs: add Semaphore 4 years ago
syncs_test.go syncs: add Semaphore 4 years ago
watchdog.go syncs: add Watch, for monitoring mutex contention 4 years ago
watchdog_test.go syncs: disable TestWatchMultipleValues on Windows CI builds 4 years ago