From 490cc7880c4f0d7930b041d85b01909a138a03d6 Mon Sep 17 00:00:00 2001 From: Rob Mulholand Date: Thu, 20 Jun 2019 16:11:38 -0500 Subject: [PATCH] rpc: enable TestClientNotificationStorm to fail - Previous implementation would not fail when error was expected but did not occur --- rpc/client_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpc/client_test.go b/rpc/client_test.go index 80fe29f824..759933f8c6 100644 --- a/rpc/client_test.go +++ b/rpc/client_test.go @@ -374,10 +374,13 @@ func TestClientNotificationStorm(t *testing.T) { return } } + if wantError { + t.Fatalf("didn't get expected error") + } } doTest(8000, false) - doTest(10000, true) + doTest(21000, true) } func TestClientHTTP(t *testing.T) {