Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Mar 11, 2024
1 parent 70d14d8 commit 421d09a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uri_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package amqp091
import (
"reflect"
"testing"
"time"
)

// Test matrix defined on http://www.rabbitmq.com/uri-spec.html
Expand Down Expand Up @@ -402,7 +403,7 @@ func TestURIParameters(t *testing.T) {
if !uri.Heartbeat.hasValue {
t.Fatal("Heartbeat not set")
}
if uri.Heartbeat.value != 2 {
if uri.Heartbeat.value != time.Duration(2) * time.Second {
t.Fatal("Heartbeat not set")
}
if uri.ConnectionTimeout != 5000 {
Expand Down

0 comments on commit 421d09a

Please sign in to comment.