MCPcopy
hub / github.com/tsuru/tsuru / TestLogStreamTrackerShutdown

Method TestLogStreamTrackerShutdown

api/logtracker_test.go:24–33  ·  view source on GitHub ↗
(c *check.C)

Source from the content-addressed store, hash-verified

22}
23
24func (s *S) TestLogStreamTrackerShutdown(c *check.C) {
25 l := appTypes.NewMockLogWatcher()
26 logTracker.add(l)
27 logTracker.Shutdown(context.Background())
28 select {
29 case <-l.Chan():
30 case <-time.After(5 * time.Second):
31 c.Fatal("timed out waiting for channel to close")
32 }
33}

Callers

nothing calls this directly

Calls 4

ChanMethod · 0.95
ShutdownMethod · 0.65
FatalMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected