Skip to content

Commit

Permalink
Fix flaky TestReadTimeout: add filter for OnError
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantv committed Feb 1, 2016
1 parent 8a1a795 commit ff7125c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion connection_test.go
Expand Up @@ -497,7 +497,9 @@ func TestReadTimeout(t *testing.T) {
// or the handler connection may be closed as it sends when the other side closes the conn.
opts := testutils.NewOpts().
AddLogFilter("Couldn't send outbound error frame", 1).
AddLogFilter("Connection error", 1, "site", "read frames")
AddLogFilter("Connection error", 1, "site", "read frames").
AddLogFilter("simpleHandler OnError", 1,
"error", "failed to send error frame, connection state connectionClosed")
WithVerifiedServer(t, opts, func(ch *Channel, hostPort string) {
for i := 0; i < 10; i++ {
ctx, cancel := NewContext(time.Second)
Expand Down

0 comments on commit ff7125c

Please sign in to comment.