MCPcopy Index your code
hub / github.com/tinode/chat / finish

Method finish

server/topic_test.go:54–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func (b *TopicTestHelper) finish() {
55 b.topic.killTimer.Stop()
56 b.topic.callEstablishmentTimer.Stop()
57 // Stop session write loops.
58 for _, s := range b.sessions {
59 close(s.send)
60 }
61 b.sessWg.Wait()
62 // Hub loop.
63 close(b.hub.routeSrv)
64 close(b.hub.routeCli)
65 <-b.hubDone
66}
67
68func (b *TopicTestHelper) newSession(sid string, uid types.Uid) (*Session, *responses) {
69 s := &Session{

Calls 2

WaitMethod · 0.80
StopMethod · 0.65

Tested by

no test coverage detected