Skip to content

Commit

Permalink
server: Fix flaky push OS per stream test
Browse files Browse the repository at this point in the history
  • Loading branch information
yondonfu committed Mar 12, 2021
1 parent 254665c commit 6a707bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,9 @@ func TestPush_OSPerStream(t *testing.T) {
body, _ = ioutil.ReadAll(fi.Body)
assert.Equal("transcoded binary data", string(body))

// Saving to record store is async so sleep for a bit
time.Sleep(100 * time.Millisecond)

store2 := drivers.TestMemoryStorages["store2"]
sess2 := store2.GetSession("sess1/" + lpmon.NodeID)
assert.NotNil(sess2)
Expand Down

0 comments on commit 6a707bd

Please sign in to comment.