From 0a7babdc37a5f28a8f186b9d9042e1c4e651088a Mon Sep 17 00:00:00 2001 From: Thomas B <9094255+Ten0@users.noreply.github.com> Date: Thu, 3 Aug 2023 09:54:48 +0000 Subject: [PATCH] Merge pull request #3729 from weiznich/fix/nightly_breaking_tests Fix broken tests --- diesel_cli/tests/database_url_errors.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/diesel_cli/tests/database_url_errors.rs b/diesel_cli/tests/database_url_errors.rs index ffa87b328c2b..35f6a182fa5c 100644 --- a/diesel_cli/tests/database_url_errors.rs +++ b/diesel_cli/tests/database_url_errors.rs @@ -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] @@ -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] @@ -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] @@ -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]