Skip to content

Commit 038fd11

Browse files
committed
GODRIVER-396: Read Preference from connection string should be used(Fix connstring_test)
1 parent 3ac2c7b commit 038fd11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/connstring/connstring_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ func TestMaxStaleness(t *testing.T) {
365365
expected time.Duration
366366
err bool
367367
}{
368-
{s: "maxStaleness=10", expected: time.Duration(10) * time.Millisecond},
369-
{s: "maxStaleness=100", expected: time.Duration(100) * time.Millisecond},
368+
{s: "maxStaleness=10", expected: time.Duration(10) * time.Second},
369+
{s: "maxStaleness=100", expected: time.Duration(100) * time.Second},
370370
{s: "maxStaleness=-2", err: true},
371371
{s: "maxStaleness=gsdge", err: true},
372372
}

0 commit comments

Comments
 (0)