MCPcopy
hub / github.com/syncthing/syncthing / expectTimeout

Function expectTimeout

lib/model/progressemitter_test.go:47–52  ·  view source on GitHub ↗
(w events.Subscription, t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func expectTimeout(w events.Subscription, t *testing.T) {
48 _, err := w.Poll(timeout)
49 if err != events.ErrTimeout {
50 t.Fatal("Unexpected non-Timeout error:", err, "at", caller(1))
51 }
52}
53
54func TestProgressEmitter(t *testing.T) {
55 ctx, cancel := context.WithCancel(context.Background())

Callers 1

TestProgressEmitterFunction · 0.85

Calls 3

callerFunction · 0.85
FatalMethod · 0.80
PollMethod · 0.65

Tested by

no test coverage detected