Skip to content

Commit

Permalink
fix(tests): change ordering of zk_thread_join (#333)
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
  • Loading branch information
akhilerm authored May 5, 2021
1 parent 4f4ef48 commit 9932a9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/cstor/gtest/test_uzfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2329,16 +2329,14 @@ TEST(uZFSRebuild, TestErroredRebuild) {
writer_thread = zk_thread_create(NULL, 0,
send_ios_to_replicas, &wargs, 0, NULL, TS_RUN,
0, 0);

zk_thread_join(writer_thread->t_tid);
zvol_rebuild_step_size = (10 * 1024ULL * 1024ULL * 1024ULL);
#ifdef DEBUG
inject_error.inject_rebuild_error.dw_replica_rebuild_error_io = 0;
#endif
execute_rebuild_test_case("complete rebuild with data conn", 15,
ZVOL_REBUILDING_SNAP, ZVOL_REBUILDING_DONE, 6, "vol3");

zk_thread_join(writer_thread->t_tid);

wargs.start_offset = 0;
wargs.total_len = (2 * total_ios) *4096;
reader_thread = zk_thread_create(NULL, 0,
Expand Down

0 comments on commit 9932a9c

Please sign in to comment.