Merge pull request #150 from klihub/fixes/server-test/TestClientEOF

server_test: wait for OnClose in TestClientEOF.
This commit is contained in:
Fu Wei 2023-07-28 09:22:27 +08:00 committed by GitHub
commit 05e0d07d83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")