Skip to content

Commit e361e4b

Browse files
committed
add test coverage for max idle time = 0 behaviour in mongo url builder tests
1 parent 04f7796 commit e361e4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/MongoDB.Driver.Tests/MongoUrlBuilderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ public void TestMaxConnecting([Values(0, -1)] int incorrectMaxConnecting)
700700

701701
[Theory]
702702
[InlineData(null, "mongodb://localhost", new[] { "" })]
703+
[InlineData(0, "mongodb://localhost/?maxIdleTime{0}", new[] { "=0h", "MS=0", "=0ms", "=0" })]
703704
[InlineData(500, "mongodb://localhost/?maxIdleTime{0}", new[] { "=500ms", "=0.5", "=0.5s", "=00:00:00.5", "MS=500" })]
704705
[InlineData(30000, "mongodb://localhost/?maxIdleTime{0}", new[] { "=30s", "=30000ms", "=30", "=0.5m", "=00:00:30", "MS=30000" })]
705706
[InlineData(1800000, "mongodb://localhost/?maxIdleTime{0}", new[] { "=30m", "=1800000ms", "=1800", "=1800s", "=0.5h", "=00:30:00", "MS=1800000" })]

0 commit comments

Comments
 (0)