Fix audit findings in queue fairness and official account lifecycle

This commit is contained in:
Pigway
2026-10-05 00:21:17 +08:00
parent b76af5ada3
commit a180dbc076
12 changed files with 285 additions and 37 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ def test_rpc_http_500_relogin_is_auth_error_not_cloud_failure():
pytest.raises(FlowError) as error,
):
OfficialRPC("secret").devices()
assert error.value.code == ErrorCode.UNAUTHORIZED
assert error.value.code == ErrorCode.OFFICIAL_AUTH_REQUIRED
assert "secret" not in str(error.value)