Skip to content

Commit

Permalink
fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahl committed Sep 15, 2024
1 parent d0f4693 commit 1e9f5a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions dev-tools/omdb/tests/env.out
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ note: using Nexus URL junk
Error: listing background tasks

Caused by:
0: Communication Error: builder error: relative URL without a base
1: builder error: relative URL without a base
0: Communication Error: builder error
1: builder error
2: relative URL without a base
=============================================
EXECUTING COMMAND: omdb ["nexus", "background-tasks", "doc"]
Expand Down Expand Up @@ -549,8 +549,8 @@ note: using Oximeter URL junk
Error: failed to fetch collector info

Caused by:
0: Communication Error: builder error: relative URL without a base
1: builder error: relative URL without a base
0: Communication Error: builder error
1: builder error
2: relative URL without a base
=============================================
EXECUTING COMMAND: omdb ["oxql", "--clickhouse-url", "junk"]
Expand Down
8 changes: 4 additions & 4 deletions internal-dns/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,8 @@ mod test {
// The DNS server is running, but has no records. Expect a failure.
let err = client.test_endpoint().await.unwrap_err();
assert!(
err.to_string().contains("no record found"),
"Unexpected Error (expected 'no record found'): {err}",
err.to_string().contains("error sending request"),
"Unexpected Error (expected 'error sending request'): {err}",
);

// Add a record for the new service.
Expand Down Expand Up @@ -913,8 +913,8 @@ mod test {
// The DNS server is running, but has no records. Expect a failure.
let err = client.test_endpoint().await.unwrap_err();
assert!(
err.to_string().contains("no record found"),
"Unexpected Error (expected 'no record found'): {err}",
err.to_string().contains("error sending request"),
"Unexpected Error (expected 'error sending request'): {err}",
);

// Add a record for the new service, but only to the second DNS server.
Expand Down
4 changes: 3 additions & 1 deletion nexus/tests/integration_tests/certificates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,9 @@ async fn test_silo_certificates() {
assert!(
error.to_string().contains("invalid peer certificate")
|| error.to_string().contains("self-signed certificate")
|| error.to_string().contains("self signed certificate")
|| error.to_string().contains("self signed certificate"),
"Unexpected error: {}",
error.to_string(),
);
} else {
panic!(
Expand Down

0 comments on commit 1e9f5a7

Please sign in to comment.