Skip to content

Commit

Permalink
Update macOS runner (#4415)
Browse files Browse the repository at this point in the history
* Update macOS runner

* Relax `timer.measure_and_compare` timings
  • Loading branch information
pwojcikdev authored Jan 31, 2024
1 parent 284d328 commit db40918
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/artifacts_build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
osx_job:
needs: prepare_build
if: ${{ needs.prepare_build.outputs.TAG_CREATED == 'true' }}
runs-on: macOS-12
runs-on: macOS-14
timeout-minutes: 90
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
BUILD_TYPE: ${{ matrix.RELEASE && 'RelWithDebInfo' || 'Debug' }}
TEST_USE_ROCKSDB: ${{ matrix.BACKEND == 'rocksdb' && '1' || '0' }}
DEADLINE_SCALE_FACTOR: ${{ matrix.BACKEND == 'rocksdb' && '2' || '1' }}
runs-on: macos-12
runs-on: macos-14
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion nano/core_test/timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ TEST (timer, measure_and_compare)
std::this_thread::sleep_for (50ms);
ASSERT_TRUE (t1.after_deadline (30ms));
ASSERT_TRUE (t1.before_deadline (500ms));
ASSERT_LT (t1.since_start (), 200ms);
ASSERT_LT (t1.since_start (), 500ms);
ASSERT_GT (t1.since_start (), 10ms);
ASSERT_GE (t1.stop (), 50ms);
std::this_thread::sleep_for (50ms);
Expand Down

0 comments on commit db40918

Please sign in to comment.