Skip to content

Commit 88e99fd

Browse files
committed
minor: fix db names in tests with periods in description
1 parent de4b424 commit 88e99fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/util/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,10 @@ pub struct IsMasterCommandResponse {
393393
}
394394

395395
pub fn get_default_name(description: &str) -> String {
396-
let mut db_name = description.replace('$', "%").replace(' ', "_");
396+
let mut db_name = description
397+
.replace('$', "%")
398+
.replace(' ', "_")
399+
.replace('.', "_");
397400
// database names must have fewer than 64 characters
398401
db_name.truncate(63);
399402
db_name

0 commit comments

Comments
 (0)