1
0

Fix payouts desync (#890)

* Fix payouts desync

* fix tests + user payouts req
This commit is contained in:
Geometrically
2024-03-12 10:52:40 -07:00
committed by GitHub
parent e2ffeab8fa
commit f8f037196e
4 changed files with 40 additions and 54 deletions

View File

@@ -112,21 +112,6 @@ async fn get_oauth_client_for_client_creator_succeeds() {
.await;
}
#[actix_rt::test]
async fn get_oauth_client_for_unrelated_user_fails() {
with_test_environment(None, |env: TestEnvironment<ApiV3>| async move {
let DummyOAuthClientAlpha { client_id, .. } = env.dummy.oauth_client_alpha.clone();
let resp = env
.api
.get_oauth_client(client_id.clone(), FRIEND_USER_PAT)
.await;
assert_status!(&resp, StatusCode::UNAUTHORIZED);
})
.await;
}
#[actix_rt::test]
async fn can_delete_oauth_client() {
with_test_environment(None, |env: TestEnvironment<ApiV3>| async move {