fix: increase admin-room poll timeout from 5s to 15s
tuwunel can take longer than 5 seconds to process admin-room commands during startup when the homeserver is under load. Bump both the poll count (5→15) and the timeout message strings to match.
This commit is contained in:
parent
e06d3e3a8b
commit
0f505d5c95
1 changed files with 3 additions and 3 deletions
|
|
@ -434,7 +434,7 @@ mod extract_new_password_tests {
|
||||||
///
|
///
|
||||||
/// 1. Anchors at the current end-token (`dir=b&limit=1`).
|
/// 1. Anchors at the current end-token (`dir=b&limit=1`).
|
||||||
/// 2. Sends `command` as an `m.text` message from the @hive admin account.
|
/// 2. Sends `command` as an `m.text` message from the @hive admin account.
|
||||||
/// 3. Polls up to 5 × 1 s for a bot message that satisfies `check`.
|
/// 3. Polls up to 15 × 1 s for a bot message that satisfies `check`.
|
||||||
/// 4. Calls `check(body)` on each non-self message; returns `Ok(T)` on the
|
/// 4. Calls `check(body)` on each non-self message; returns `Ok(T)` on the
|
||||||
/// first `Some(T)`.
|
/// first `Some(T)`.
|
||||||
///
|
///
|
||||||
|
|
@ -550,7 +550,7 @@ async fn admin_room_reset_password(
|
||||||
.with_context(|| {
|
.with_context(|| {
|
||||||
format!(
|
format!(
|
||||||
"matrix: admin room reset-password for @{localpart}:{server_name}: \
|
"matrix: admin room reset-password for @{localpart}:{server_name}: \
|
||||||
no password response received within 5 seconds. \
|
no password response received within 15 seconds. \
|
||||||
Verify the admin room accepts 'reset-password @user:server' commands."
|
Verify the admin room accepts 'reset-password @user:server' commands."
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
@ -833,7 +833,7 @@ pub async fn promote_user_to_admin(
|
||||||
.with_context(|| {
|
.with_context(|| {
|
||||||
format!(
|
format!(
|
||||||
"matrix: admin room make-user-admin for @{localpart}:{server_name}: \
|
"matrix: admin room make-user-admin for @{localpart}:{server_name}: \
|
||||||
no success response within 5 seconds. \
|
no success response within 15 seconds. \
|
||||||
Verify the admin room accepts 'make-user-admin @user:server' commands."
|
Verify the admin room accepts 'make-user-admin @user:server' commands."
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue