Skip to content

Commit

Permalink
test UPDATE data race improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed May 4, 2022
1 parent 8c4ee2d commit ac6a16b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_confirmed_commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ test_rollback_disconnect(void **state)
/* disconnect session, commit is rolled back */
nc_session_free(ncs, NULL);

/* reply is sent before the server callback is called so give it a chance to perform the rollback */
usleep(100000);

/* data should remain unchanged, empty */
ASSERT_EMPTY_CONFIG(st);
}
Expand Down

0 comments on commit ac6a16b

Please sign in to comment.