Skip to content

Commit

Permalink
use maxAttempts: 1 in other error handling tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Jun 15, 2020
1 parent 086a250 commit 681c148
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/kbn-es/src/utils/native_realm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('isSecurityEnabled', () => {
throw error;
});

expect(await nativeRealm.isSecurityEnabled()).toBe(false);
expect(await nativeRealm.isSecurityEnabled({ maxAttempts: 1 })).toBe(false);
});

test('rejects if unexpected error is thrown', async () => {
Expand All @@ -97,9 +97,9 @@ describe('isSecurityEnabled', () => {
throw error;
});

await expect(nativeRealm.isSecurityEnabled()).rejects.toThrowErrorMatchingInlineSnapshot(
`"ResponseError"`
);
await expect(
nativeRealm.isSecurityEnabled({ maxAttempts: 1 })
).rejects.toThrowErrorMatchingInlineSnapshot(`"ResponseError"`);
});
});

Expand Down

0 comments on commit 681c148

Please sign in to comment.