From 5c7e84445764c2b3b3d789f4547a1f32d5efe229 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sun, 30 Apr 2023 18:47:56 +0800 Subject: [PATCH] fix: remove build process test --- test/codec/short_code.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/codec/short_code.cc b/test/codec/short_code.cc index 740486f..c0ebf10 100644 --- a/test/codec/short_code.cc +++ b/test/codec/short_code.cc @@ -79,24 +79,15 @@ TEST(ShortCode, DISABLED_global) { TEST(ShortCode, speed_up) { std::thread threads[4]; - - /// speed up to normal mode - EXPECT_EQ(BasicRanges::status(), BasicRanges::NOT_INIT); for (auto &t : threads) { t = std::thread(ShortCode::speed_up, ShortCode::NORMAL); } - usleep(1000); // wait 1ms -> avoid mutex unlocked - EXPECT_EQ(BasicRanges::status(), BasicRanges::BUILDING); for (auto &t : threads) { t.join(); } EXPECT_EQ(BasicRanges::status(), BasicRanges::AVAILABLE); - /// speed up to fast mode - EXPECT_EQ(AllCases::status(), AllCases::NOT_INIT); 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(); } EXPECT_EQ(AllCases::status(), AllCases::AVAILABLE); }