From 9ae20a0b94ddf662ea0fbfdeb17e8dc410641c86 Mon Sep 17 00:00:00 2001 From: marie flores Date: Thu, 26 Sep 2024 16:23:19 +0200 Subject: [PATCH] [backend] wip: try to fix test (#8101) --- .../tests/02-integration/02-resolvers/user-test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opencti-platform/opencti-graphql/tests/02-integration/02-resolvers/user-test.js b/opencti-platform/opencti-graphql/tests/02-integration/02-resolvers/user-test.js index 423b368e0b671..2febe52d2e643 100644 --- a/opencti-platform/opencti-graphql/tests/02-integration/02-resolvers/user-test.js +++ b/opencti-platform/opencti-graphql/tests/02-integration/02-resolvers/user-test.js @@ -944,8 +944,7 @@ describe('User has no settings capability and is organization admin query behavi variables: { id: userInternalId }, }); // Verify is no longer found - const queryResult = await adminQuery({ query: READ_QUERY, variables: { id: userInternalId } }); - expect(queryResult).not.toBeNull(); + const queryResult = await adminQueryWithSuccess({ query: READ_QUERY, variables: { id: userInternalId } }); expect(queryResult.data.user).toBeNull(); }); });