kamilsk / retry

♻️ The most advanced interruptible mechanism to perform actions repetitively until successful.
https://pkg.go.dev/github.com/kamilsk/retry/v5
MIT License
340 stars 14 forks source link

fix lint issues and coverage report #161

Closed kamilsk closed 3 years ago

kamilsk commented 3 years ago
example_test.go:42:3: exitAfterDefer: log.Fatal clutters `defer cancel()` (gocritic)
        log.Fatal(err)
        ^
retry_test.go:65:44: SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)
        ctx := context.WithValue(context.TODO(), "test", "value")
                                                 ^
retry_test.go:140:44: SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)
        ctx := context.WithValue(context.TODO(), "test", "value")
                                                 ^
$ if [[ $TRAVIS_GO_VERSION == 1.15* ]]; then
    cc-test-reporter after-build -t gocov -p $(go list -m) --exit-code $TRAVIS_TEST_RESULT
fi

time="2021-01-03T11:26:18Z" level=error msg="failed to read file v5/backoff/backoff.go\nopen v5/backoff/backoff.go: no such file or directory" 
Error: open v5/backoff/backoff.go: no such file or directory