Skip to content

Commit

Permalink
Merge pull request diesel-rs#3729 from weiznich/fix/nightly_breaking_…
Browse files Browse the repository at this point in the history
…tests

Fix broken tests
  • Loading branch information
Ten0 authored and weiznich committed Aug 15, 2023
1 parent eeb46ce commit 0a7babd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions diesel_cli/tests/database_url_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ fn missing_sqlite_panic_scheme() {
.command_without_database_url("setup")
.env("DATABASE_URL", "sqlite://example.db")
.run();
assert!(result
.stderr()
.contains("panicked at 'Database url `sqlite://example.db` requires the `sqlite` feature but it's not enabled.'"));
assert!(result.stderr().contains(
"Database url `sqlite://example.db` requires the `sqlite` feature but it's not enabled."
));
}

#[test]
Expand All @@ -38,9 +38,9 @@ fn missing_postgres_panic_postgres() {
.command_without_database_url("setup")
.env("DATABASE_URL", "postgres://localhost")
.run();
assert!(result
.stderr()
.contains("panicked at 'Database url `postgres://localhost` requires the `postgres` feature but it's not enabled.'"));
assert!(result.stderr().contains(
"Database url `postgres://localhost` requires the `postgres` feature but it's not enabled."
));
}

#[test]
Expand All @@ -53,7 +53,7 @@ fn missing_postgres_panic_postgresql() {
.run();
assert!(result
.stderr()
.contains("panicked at 'Database url `postgresql://localhost` requires the `postgres` feature but it's not enabled.'"));
.contains("Database url `postgresql://localhost` requires the `postgres` feature but it's not enabled."));
}

#[test]
Expand All @@ -64,9 +64,9 @@ fn missing_mysql_panic() {
.command_without_database_url("setup")
.env("DATABASE_URL", "mysql://localhost")
.run();
assert!(result
.stderr()
.contains("panicked at 'Database url `mysql://localhost` requires the `mysql` feature but it's not enabled.'"));
assert!(result.stderr().contains(
"Database url `mysql://localhost` requires the `mysql` feature but it's not enabled."
));
}

#[test]
Expand Down

0 comments on commit 0a7babd

Please sign in to comment.