mirror of https://github.com/tailscale/tailscale/
ipn/ipnlocal: fail test if more notifies are put than expected
The `put` callback runs on a different goroutine to the test, so calling t.Fatalf in put had no effect. `drain` is always called when checking what was put and is called from the test goroutine, so that's a good place to fail the test if the channel was too full. Updates #17363 Signed-off-by: James Sanderson <jsanderson@tailscale.com>pull/17386/head
parent
af1114e896
commit
ebc370e517
Loading…
Reference in New Issue