skipping pushing message to client if there are no messages; fixes flaky test and de-intensifies read loop
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user