fix bugs with websocket reconnection, don't re-use redis sinks (#22)
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user