Skip to content

Commit

Permalink
changed group_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Jan 17, 2024
1 parent e7e4620 commit cfc342d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .buildkite/filebeat/filebeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ steps:
key: "macos-extended"
# if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "filebeat for macos" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
command:
- "ulimit -Sn 50000"
- "ulimit -Sn 10000"
- ".buildkite/filebeat/scripts/unit-tests.sh"
notify:
- github_commit_status:
Expand Down
6 changes: 4 additions & 2 deletions filebeat/input/filestream/internal/task/group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,14 @@ func TestGroup_Go(t *testing.T) {
want := uint64(2)
g := NewGroup(want, time.Second, logger, "errorPrefix")

wg.Add(2)
wg.Add(1)
err := g.Go(workload(1))
require.NoError(t, err)
wg.Wait()

wg.Add(1)
err = g.Go(workload(2))
require.NoError(t, err)

wg.Wait()

err = g.Stop()
Expand Down

0 comments on commit cfc342d

Please sign in to comment.