Merge pull request #150 from klihub/fixes/server-test/TestClientEOF
server_test: wait for OnClose in TestClientEOF.
This commit is contained in:
commit
05e0d07d83
@ -363,6 +363,8 @@ func TestClientEOF(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
client.UserOnCloseWait(ctx)
|
||||
|
||||
// server shutdown, but we still make a call.
|
||||
if err := client.Call(ctx, serviceName, "Test", tp, tp); err == nil {
|
||||
t.Fatalf("expected error when calling against shutdown server")
|
||||
|
Loading…
Reference in New Issue
Block a user