-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable test should_fail_with_ssl_enabled_and_bad_ssl_config
#521
Comments
It was ignored but it's now passing. I don't know was it was ignored.
It was ignored but it's now passing. I don't know was it was ignored.
The test was ignored because it's failing on the GitHub runner: failures:
---- servers::api::v1::contract::configuration::should_fail_with_ssl_enabled_and_bad_ssl_config stdout ----
---- servers::api::v1::contract::configuration::should_fail_with_ssl_enabled_and_bad_ssl_config stderr ----
panic did not contain expected string
panic message: `"`spawn_local` called from outside of a `task::LocalSet`"`,
expected substring: `"Could not receive bind_address."`
thread 'main' panicked at /home/runner/work/torrust-tracker/torrust-tracker/src/servers/apis/server.rs:216:9:
`spawn_local` called from outside of a `task::LocalSet`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Anyway, I don't like the final panic message: This is part of the let task = tokio::spawn(async move {
let (bind_addr, server) = Launcher::start(&configuration, tracker, shutdown_signal(shutdown_receiver));
addr_sender.send(bind_addr).expect("Could not return SocketAddr.");
server.await;
}); What is happening is let tls_config = RustlsConfig::from_pem_file(ssl_cert_path, ssl_key_path)
.await
.expect("Could not read tls cert."); So the line enum LaunchingError {
InvalidCertOrKeyPath
} |
… the service It shows a more friendly error message and it's easier to test.
… the service It shows a more friendly error message and it's easier to test.
… the service It shows a more friendly error message and it's easier to test.
It shows a more friendly error message and it's easier to test.
It shows a more friendly error message and it's easier to test.
…tarts It shows a more friendly error message and it's easier to test.
THe following test was ignored by @da2ce7 but it seems to pass.
The text was updated successfully, but these errors were encountered: