skipping pushing message to client if there are no messages; fixes flaky test and de-intensifies read loop

This commit is contained in:
2017-08-05 18:06:34 -07:00
parent 029d1ed5b3
commit e5d16dd2d5
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ func TestDeltasDouble(t *testing.T) {
// send the second message, via clientB
clientB.ReceiveJSON(w.CH.Message(acedoc.Insert(0, 0, "b")))
time.Sleep(200 * time.Millisecond)
time.Sleep(400 * time.Millisecond)
clientA.mtx.Lock()
clientB.mtx.Lock()