Skip to content

Commit 61bed24

Browse files
committed
RUST-1663: the port shouuld be in multi
1 parent cdf3f87 commit 61bed24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/spec/oidc.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::sync::{Arc, Mutex};
1010

1111
macro_rules! mongodb_uri {
1212
() => {
13-
"mongodb://localhost/"
13+
"mongodb://localhost"
1414
};
1515
( $user:literal ) => {
1616
concat!("mongodb://", $user, "@localhost/")
@@ -19,24 +19,24 @@ macro_rules! mongodb_uri {
1919

2020
macro_rules! mongodb_uri_single {
2121
() => {
22-
concat!(mongodb_uri!(), "?authMechanism=MONGODB-OIDC")
22+
concat!(mongodb_uri!(), "/?authMechanism=MONGODB-OIDC")
2323
};
2424
( $user:literal ) => {
25-
concat!(mongodb_uri!($user), "?authMechanism=MONGODB-OIDC")
25+
concat!(mongodb_uri!($user), "/?authMechanism=MONGODB-OIDC")
2626
};
2727
}
2828

2929
macro_rules! mongodb_uri_multi {
3030
() => {
3131
concat!(
3232
mongodb_uri!(),
33-
"?authMechanism=MONGODB-OIDC&directConnection=true"
33+
":27018/?authMechanism=MONGODB-OIDC&directConnection=true"
3434
)
3535
};
3636
( $user:literal ) => {
3737
concat!(
3838
mongodb_uri!($user),
39-
"?authMechanism=MONGODB-OIDC&directConnection=true"
39+
":27018/?authMechanism=MONGODB-OIDC&directConnection=true"
4040
)
4141
};
4242
}

0 commit comments

Comments
 (0)