Update macOS runner (#4415)
* Update macOS runner * Relax `timer.measure_and_compare` timings
This commit is contained in:
parent
284d32820e
commit
db40918364
3 changed files with 3 additions and 3 deletions
2
.github/workflows/artifacts_build_deploy.yml
vendored
2
.github/workflows/artifacts_build_deploy.yml
vendored
|
@ -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:
|
||||
|
|
2
.github/workflows/unit_tests.yml
vendored
2
.github/workflows/unit_tests.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue