NO-JIRA: longer timeout in heartbeat test, false failures
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/32c7036c Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/32c7036c Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/32c7036c Branch: refs/heads/master Commit: 32c7036cc5745d55241195e4b36e0b516fd57b2c Parents: f46076e Author: Alan Conway <acon...@redhat.com> Authored: Wed Oct 10 16:12:11 2018 -0400 Committer: Alan Conway <acon...@redhat.com> Committed: Thu Oct 11 12:33:08 2018 -0400 ---------------------------------------------------------------------- go/src/qpid.apache.org/electron/electron_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/32c7036c/go/src/qpid.apache.org/electron/electron_test.go ---------------------------------------------------------------------- diff --git a/go/src/qpid.apache.org/electron/electron_test.go b/go/src/qpid.apache.org/electron/electron_test.go index c8a51c7..cf881e6 100644 --- a/go/src/qpid.apache.org/electron/electron_test.go +++ b/go/src/qpid.apache.org/electron/electron_test.go @@ -291,8 +291,8 @@ func TestConnectionCloseInterrupt2(t *testing.T) { func TestHeartbeat(t *testing.T) { p := newSocketPair(t, - []ConnectionOption{Heartbeat(12 * time.Millisecond)}, - []ConnectionOption{Heartbeat(11 * time.Millisecond)}) + []ConnectionOption{Heartbeat(102 * time.Millisecond)}, + []ConnectionOption{Heartbeat(101 * time.Millisecond)}) defer func() { p.close() }() // Function to freeze the server to stop it sending heartbeats. @@ -301,8 +301,8 @@ func TestHeartbeat(t *testing.T) { freeze := func() error { return p.server.(*connection).engine.Inject(func() { <-unfreeze }) } fatalIf(t, p.client.Sync()) - errorIf(t, checkEqual(11*time.Millisecond, p.client.Connection().Heartbeat())) - errorIf(t, checkEqual(12*time.Millisecond, p.server.Heartbeat())) + errorIf(t, checkEqual(101*time.Millisecond, p.client.Connection().Heartbeat())) + errorIf(t, checkEqual(102*time.Millisecond, p.server.Heartbeat())) // Freeze the server for less than a heartbeat fatalIf(t, freeze()) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org