Skip to content

Commit

Permalink
Add upterm to debug failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Aug 22, 2024
1 parent b0cee11 commit b6d1e14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/mac_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ jobs:
shell: bash
run: ninja

- uses: lhotari/action-upterm@v1

- name: Run Tests
working-directory: ./build
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion tst/EnergyPlus/unit/Timer.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b6d1e14

Please sign in to comment.