From 9932a9c7870b36192269116f0da76ee8ec4cf1d7 Mon Sep 17 00:00:00 2001 From: Akhil Mohan Date: Wed, 5 May 2021 12:17:37 +0530 Subject: [PATCH] fix(tests): change ordering of zk_thread_join (#333) Signed-off-by: Akhil Mohan --- tests/cstor/gtest/test_uzfs.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/cstor/gtest/test_uzfs.cc b/tests/cstor/gtest/test_uzfs.cc index a3d41137790f..4895e050893a 100644 --- a/tests/cstor/gtest/test_uzfs.cc +++ b/tests/cstor/gtest/test_uzfs.cc @@ -2329,7 +2329,7 @@ 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; @@ -2337,8 +2337,6 @@ TEST(uZFSRebuild, TestErroredRebuild) { 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,