From b2cd81a992c34076afc328e1fe7b7ff89e471a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 4 Apr 2025 14:28:53 +0200 Subject: [PATCH] test(sdk): Fix compilation error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduced by merging #4886 and #4887 around the same time. Signed-off-by: Kévin Commaille --- crates/matrix-sdk/tests/integration/client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/matrix-sdk/tests/integration/client.rs b/crates/matrix-sdk/tests/integration/client.rs index 63d2bd00f..e58f0d9f7 100644 --- a/crates/matrix-sdk/tests/integration/client.rs +++ b/crates/matrix-sdk/tests/integration/client.rs @@ -1430,5 +1430,6 @@ async fn test_logout() { // This returns an error because it requires a HTTPS server URI, or to be able // to call `OAuth::insecure_rewrite_https_to_http()`, but at least we are // testing the OAuth branch inside `Client::logout()`. - assert_matches!(res, Err(Error::OAuth(OAuthError::Logout(OAuthTokenRevocationError::Url(_))))); + assert_matches!(res, Err(Error::OAuth(oauth_error))); + assert_matches!(*oauth_error, OAuthError::Logout(OAuthTokenRevocationError::Url(_))); }