added an extra message check to the client test

This commit is contained in:
2017-08-04 19:14:17 -07:00
parent 72ca141497
commit e4f2e04736
+9
View File
@@ -43,4 +43,13 @@ func TestClient(t *testing.T) {
if got := doc.Contents(); got != "alphabet" {
t.Errorf("saw doc %q, expected %q", got, "alphabet")
}
select {
case <-bobCh:
t.Error("got an unexpected message via Bob")
case <-aliceCh:
t.Error("got an unexpected message via Alice")
case <-time.After(100 * time.Millisecond):
// expected
}
}