Skip to content

Commit b2f5e47

Browse files
committed
Rework time dilution in F3 tests and refine assertions
Progress the clock during tests independently of condition check. Rework the assertions to use built-in eventual assertion. Use consistent names for the asserting functions. Fixes #818 Fixes #847
1 parent e232882 commit b2f5e47

File tree

3 files changed

+312
-241
lines changed

3 files changed

+312
-241
lines changed

.github/workflows/repeat-flaky.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Repeat Flaky Tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
name: ${{ matrix.test }} ${{ matrix.go }}
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
go:
14+
- 1.22
15+
- 1.23
16+
test:
17+
- TestF3Simple
18+
- TestF3WithLookback
19+
- TestF3PauseResumeCatchup
20+
- TestF3FailRecover
21+
- TestF3DynamicManifest_WithoutChanges
22+
- TestF3DynamicManifest_WithRebootstrap
23+
- TestF3DynamicManifest_WithPauseAndRebootstrap
24+
- TestF3DynamicManifest_RebootstrapWithCompression
25+
- TestF3LateBootstrap
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
submodules: 'recursive'
31+
- name: Repeat ${{ matrix.test }}
32+
run: go test -timeout 10m -count 10 -v --run='^${{ matrix.test }}' --failfast .
33+
- name: Repeat ${{ matrix.test }} with race detector
34+
run: go test -timeout 10m -count 10 -v --race --run='^${{ matrix.test }}' --failfast .

0 commit comments

Comments
 (0)