···183183184184 sendMessage(t, publisherConn, topicA, data)
185185186186+ // the timeout for a connection is 100 milliseconds, so we should wait at least this long before checking the unsubscribe
187187+ // TODO: see if theres a better way, but without this, the test is flakey
188188+ time.Sleep(time.Millisecond * 100)
189189+186190 assert.Len(t, srv.topics, 2)
187191 assert.Len(t, srv.topics[topicA].subscriptions, 0)
188192 assert.Len(t, srv.topics[topicB].subscriptions, 0)