Skip to content

Commit 80c91ec

Browse files
mdb-adkevinAlbs
andauthored
Apply suggestions from code review
Co-authored-by: Kevin Albertson <kevin.eric.albertson@gmail.com>
1 parent a293700 commit 80c91ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test-mongocrypt-datakey.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ static void _test_create_datakey_with_retry(_mongocrypt_tester_t *tester) {
521521
TEST_FILE("./test/data/kms-aws/encrypt-response-partial.txt"),
522522
&should_retry),
523523
kms_ctx);
524+
ASSERT(!should_retry);
524525
// Mark another network error.
525526
ASSERT_OK(mongocrypt_kms_ctx_fail(kms_ctx), kms_ctx);
526527
// Expect some sleep is requested
@@ -608,6 +609,7 @@ static void _test_create_datakey_with_retry(_mongocrypt_tester_t *tester) {
608609
TEST_FILE("./test/data/kms-aws/encrypt-response.txt"),
609610
&should_retry),
610611
kms_ctx);
612+
ASSERT(!should_retry);
611613
ASSERT_OK(mongocrypt_ctx_kms_done(ctx), ctx);
612614
_mongocrypt_tester_run_ctx_to(tester, ctx, MONGOCRYPT_CTX_DONE);
613615
mongocrypt_ctx_destroy(ctx);

0 commit comments

Comments
 (0)