Skip to content

Commit 4683557

Browse files
committed
Handle status code 550 for registration round not yet opened
1 parent 4d7b2eb commit 4683557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mithril-test-lab/mithril-end-to-end/src/stress_test/fake_signer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ async fn send_signer_registration_request(
4343

4444
match response.status() {
4545
StatusCode::CREATED => Ok(()),
46-
StatusCode::SERVICE_UNAVAILABLE if try_register_until_registration_round_is_open => {
46+
status if status.as_u16() == 550 && try_register_until_registration_round_is_open => {
4747
let error_message = response.text().await.unwrap();
4848
debug!(
49-
"Error 503 (SERVICE_UNAVAILABLE) for First signer registration, waiting 250ms before trying again";
49+
"Error 550 (REGISTRATION_ROUND_NOT_YET_OPENED) for First signer registration, waiting 250ms before trying again";
5050
"error_message" => &error_message
5151
);
5252
tokio::time::sleep(Duration::from_millis(250)).await;

0 commit comments

Comments
 (0)