Browse Source

fix: delay status check after thread create

legacy
Dnomd343 2 years ago
parent
commit
87d64678a0
  1. 1
      test/codec/short_code.cc

1
test/codec/short_code.cc

@ -50,6 +50,7 @@ TEST(ShortCode, speed_up) {
for (auto &t : threads) {
t = std::thread(ShortCode::speed_up, ShortCode::FAST);
}
usleep(1000); // wait 1ms -> avoid mutex unlocked
EXPECT_EQ(AllCases::status(), AllCases::BUILDING);
for (auto &t : threads) {
t.join();

Loading…
Cancel
Save