(t *testing.T)
| 143 | } |
| 144 | |
| 145 | func TestHubClose(t *testing.T) { |
| 146 | hub := NewHub() |
| 147 | |
| 148 | _, conn := newTestWSPair(t) |
| 149 | hub.Register("agent1", conn) |
| 150 | hub.Close() |
| 151 | |
| 152 | if hub.IsConnected("agent1") { |
| 153 | t.Fatal("expected no connections after close") |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | func TestHubConcurrency(t *testing.T) { |
| 158 | hub := NewHub() |
nothing calls this directly
no test coverage detected