From d533e81127725cbffc472dcc6e37e3bc9e23d24e Mon Sep 17 00:00:00 2001 From: Ringo Hoffmann Date: Tue, 9 Mar 2021 10:24:41 +0100 Subject: [PATCH] fix tests for go <= 1.12 --- .github/workflows/main-ci.yml | 2 +- timedmap_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index dd3fd45..cd4dddf 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [1.12, 1.13, 1.14, ^1.14] + go-version: [1.12, 1.13, 1.14, 1.15, ^1.16] steps: - name: Set up Go 1.x diff --git a/timedmap_test.go b/timedmap_test.go index c151f47..45b4ad3 100644 --- a/timedmap_test.go +++ b/timedmap_test.go @@ -280,7 +280,7 @@ func TestGetExpiredConcurrent(t *testing.T) { tm := New(dCleanupTick) wg := sync.WaitGroup{} - for i := 0; i < 50_000; i++ { + for i := 0; i < 50000; i++ { wg.Add(1) go func() { defer wg.Done()