From b6d1e1463103c9157950f82d0e874a2a49253e66 Mon Sep 17 00:00:00 2001 From: Edwin Lee Date: Thu, 22 Aug 2024 09:46:34 -0500 Subject: [PATCH] Add upterm to debug failing tests --- .github/workflows/mac_build.yml | 2 ++ tst/EnergyPlus/unit/Timer.unit.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mac_build.yml b/.github/workflows/mac_build.yml index f68cf5d7f50..264ce6bd412 100644 --- a/.github/workflows/mac_build.yml +++ b/.github/workflows/mac_build.yml @@ -82,6 +82,8 @@ jobs: shell: bash run: ninja + - uses: lhotari/action-upterm@v1 + - name: Run Tests working-directory: ./build shell: bash diff --git a/tst/EnergyPlus/unit/Timer.unit.cc b/tst/EnergyPlus/unit/Timer.unit.cc index 6817974a17f..dae5b5da3ec 100644 --- a/tst/EnergyPlus/unit/Timer.unit.cc +++ b/tst/EnergyPlus/unit/Timer.unit.cc @@ -70,7 +70,7 @@ TEST_F(EnergyPlusFixture, Timer_ticktock) std::this_thread::sleep_for(std::chrono::milliseconds(sleep_time_ms)); t.tock(); // In some occurrences CI is reporting slightly above than 100 values, probably system was quite busy at that time, - // but we don't want to have the test failing occassionally + // but we don't want to have the test failing occasionally EXPECT_GE(t.duration().count(), sleep_time_ms); EXPECT_LT(t.duration().count(), sleep_time_ms * 2); EXPECT_GE(t.elapsedSeconds(), sleep_time_s);