Skip to content

Commit 421d09a

Browse files
committed
fix test
1 parent 70d14d8 commit 421d09a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

uri_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package amqp091
88
import (
99
"reflect"
1010
"testing"
11+
"time"
1112
)
1213

1314
// Test matrix defined on http://www.rabbitmq.com/uri-spec.html
@@ -402,7 +403,7 @@ func TestURIParameters(t *testing.T) {
402403
if !uri.Heartbeat.hasValue {
403404
t.Fatal("Heartbeat not set")
404405
}
405-
if uri.Heartbeat.value != 2 {
406+
if uri.Heartbeat.value != time.Duration(2) * time.Second {
406407
t.Fatal("Heartbeat not set")
407408
}
408409
if uri.ConnectionTimeout != 5000 {

0 commit comments

Comments
 (0)