fix bugs with websocket reconnection, don't re-use redis sinks (#22)

This commit is contained in:
David Zhao
2021-02-15 17:57:01 -08:00
committed by GitHub
parent 9466bc01ed
commit 99baeb38e4
11 changed files with 268 additions and 219 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ func TestMultiNodeRouting(t *testing.T) {
}
tr1 := c2.SubscribedTracks()[c1.ID()][0]
assert.Equal(t, "webcam", tr1.StreamID())
assert.Equal(t, c1.ID(), tr1.StreamID())
return true
})
+2 -2
View File
@@ -68,7 +68,7 @@ func TestSinglePublisher(t *testing.T) {
}
tr1 := c2.SubscribedTracks()[c1.ID()][0]
assert.Equal(t, "webcam", tr1.StreamID())
assert.Equal(t, c1.ID(), tr1.StreamID())
return true
})
if !success {
@@ -94,6 +94,6 @@ func TestSinglePublisher(t *testing.T) {
// ensure that the track ids are generated by server
tracks := c3.SubscribedTracks()[c1.ID()]
for _, tr := range tracks {
assert.True(t, strings.Contains(tr.ID(), "|TR_"), "track should begin with TR")
assert.True(t, strings.HasPrefix(tr.ID(), "TR_"), "track should begin with TR")
}
}