We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e2a78d commit d1846fdCopy full SHA for d1846fd
1 file changed
src/sinks/gcp/stackdriver/logs/tests.rs
@@ -491,15 +491,11 @@ async fn fails_missing_creds() {
491
log_id = "testlogs"
492
resource.type = "generic_node"
493
resource.namespace = "office"
494
- credentials_path = {missing_credentials_path:?}
495
- "#}))
496
- .unwrap();
497
-
498
- let error = config
499
- .build(SinkContext::default())
500
- .await
501
- .expect_err("config.build failed to error");
502
- assert_downcast_matches!(error, GcpError, GcpError::InvalidCredentials { .. });
+ "#})
+ .unwrap();
+ if config.build(SinkContext::default()).await.is_ok() {
+ panic!("config.build failed to error");
+ }
503
}
504
505
#[test]
0 commit comments