We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e746d2 commit fe9b06cCopy full SHA for fe9b06c
1 file changed
diesel/src/test_helpers.rs
@@ -42,10 +42,10 @@ cfg_if! {
42
MysqlConnection::establish(&database_url()).unwrap()
43
}
44
45
- fn database_url() -> String {
+ pub fn database_url() -> String {
46
dotenv::var("MYSQL_UNIT_TEST_DATABASE_URL")
47
.or_else(|_| dotenv::var("DATABASE_URL"))
48
- .expect("DATABASE_URL must be set in order to run tests");
+ .expect("DATABASE_URL must be set in order to run tests")
49
50
} else {
51
compile_error!(
0 commit comments