We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ba1033 commit 04686a6Copy full SHA for 04686a6
sqlx-core/src/testing/mod.rs
@@ -3,7 +3,7 @@ use std::time::Duration;
3
4
use futures_core::future::BoxFuture;
5
6
-use base64::{engine::general_purpose::STANDARD, Engine as _};
+use base64::{engine::general_purpose::URL_SAFE, Engine as _};
7
pub use fixtures::FixtureSnapshot;
8
use sha2::{Digest, Sha512};
9
@@ -41,7 +41,7 @@ pub trait TestSupport: Database {
41
let mut hasher = Sha512::new();
42
hasher.update(args.test_path.as_bytes());
43
let hash = hasher.finalize();
44
- let hash = STANDARD.encode(&hash[..39]);
+ let hash = URL_SAFE.encode(&hash[..39]);
45
let db_name = format!("_sqlx_test_{}", hash);
46
debug_assert!(db_name.len() == 63);
47
db_name
0 commit comments