Skip to content

Commit 248ffc9

Browse files
authored
use credentials for authenticated mongo instance (#1029)
1 parent 9a72a2d commit 248ffc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎exporter/multi_target_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func TestMultiTarget(t *testing.T) {
4444
ConnectTimeoutMS: 1000,
4545
},
4646
{
47-
URI: fmt.Sprintf("mongodb://%s", net.JoinHostPort(hostname, tu.GetenvDefault("TEST_MONGODB_S2_PRIMARY_PORT", "17004"))),
47+
URI: fmt.Sprintf("mongodb://admin:admin@%s", net.JoinHostPort(hostname, tu.GetenvDefault("TEST_MONGODB_S2_PRIMARY_PORT", "17004"))),
4848
DirectConnect: true,
4949
ConnectTimeoutMS: 1000,
5050
},

0 commit comments

Comments
 (0)