Update macOS runner (#4415)

* Update macOS runner

* Relax `timer.measure_and_compare` timings
This commit is contained in:
Piotr Wójcik 2024-01-31 23:25:17 +01:00 committed by GitHub
commit db40918364
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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

View file

@ -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);