diff --git a/.buildkite/pipeline.yaml b/.buildkite/pipeline.yaml index 2d336f0..bedb968 100644 --- a/.buildkite/pipeline.yaml +++ b/.buildkite/pipeline.yaml @@ -28,7 +28,7 @@ steps: command: ["go", "test", "-coverprofile=coverage.out", "./..."] artifact_paths: ["coverage.out"] - group: ":closed_lock_with_key: Security Checks" - depends_on: "go_test_libsql" + depends_on: "go_test" key: "security" steps: - label: ":closed_lock_with_key: gosec" @@ -43,13 +43,13 @@ steps: - label: ":github: upload PR reports" key: "scan-upload-pr" if: build.pull_request.id != null - depends_on: ["gosec", "go_test_libsql"] + depends_on: ["gosec", "go_test"] plugins: - artifacts#v1.9.4: download: "results.txt" - artifacts#v1.9.4: download: "coverage.out" - step: "go_test_libsql" + step: "go_test" - docker#v5.11.0: image: "sonarsource/sonar-scanner-cli:5" environment: @@ -59,13 +59,13 @@ steps: - label: ":github: upload reports" key: "scan-upload" if: build.branch == "main" - depends_on: ["gosec", "go_test_libsql"] + depends_on: ["gosec", "go_test"] plugins: - artifacts#v1.9.4: download: results.txt - artifacts#v1.9.4: download: coverage.out - step: "go_test_libsql" + step: "go_test" - docker#v5.11.0: image: "sonarsource/sonar-scanner-cli:5" environment: diff --git a/slack/slack.go b/slack/slack.go index 9155c6d..3f92dfa 100644 --- a/slack/slack.go +++ b/slack/slack.go @@ -91,7 +91,7 @@ func (c *Client) Post(ctx context.Context, payload *Payload) error { return err } - return fmt.Errorf("slack: %s failed with %d %s", payloadJSON, resp.StatusCode, string(body)) + return fmt.Errorf("slack: %s failed with %d %s", payloadJSON, resp.StatusCode, string(body)) //nolint:err113 } return nil diff --git a/ulids/ulids_test.go b/ulids/ulids_test.go index 8d59a56..9010128 100644 --- a/ulids/ulids_test.go +++ b/ulids/ulids_test.go @@ -42,6 +42,7 @@ func TestNew(t *testing.T) { require.False(t, ulidlib.IsZero(uid)) }() } + wg.Wait() } @@ -64,6 +65,7 @@ func TestFromTime(t *testing.T) { vals.Store(uid, struct{}{}) }() } + wg.Wait() nunique := 0 @@ -72,6 +74,7 @@ func TestFromTime(t *testing.T) { nunique++ return true }) + require.Equal(t, 100, nunique) }