Skip to content

add jitter to sync interval to avoid multiple sync at same time #99

add jitter to sync interval to avoid multiple sync at same time

add jitter to sync interval to avoid multiple sync at same time #99

Workflow file for this run

name: Test
on:
push:
pull_request:
permissions:
contents: read
jobs:
pkg-test:
strategy:
matrix:
go-version: [1.21.x, 1.22.x, 1.23.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Test
run: go test -v -cover ./...
- name: Test with race
run: go test -v -cover -race -count 1 -timeout 20s --tags deadlock_test -run Test_mirror_detect_race ./pkg/mirror/...