Skip to content

Commit

Permalink
Silence unparam linter error
Browse files Browse the repository at this point in the history
unparam  testAbortedByScriptTestAbort - result 0 (*go.k6.io/k6/cmd/state.GlobalTestState) is never used
  • Loading branch information
Ivan Mirić committed Jan 13, 2023
1 parent 96c1cca commit 698d53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tests/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ func TestAbortedByScriptAbortInTeardown(t *testing.T) {

func testAbortedByScriptTestAbort(
t *testing.T, shouldHaveMetrics bool, script string, runTest func(*testing.T, *state.GlobalTestState),
) *state.GlobalTestState {
) *state.GlobalTestState { //nolint:unparam
ts := getSimpleCloudOutputTestState(
t, script, nil, lib.RunStatusAbortedUser, cloudapi.ResultStatusPassed, exitcodes.ScriptAborted,
)
Expand Down

0 comments on commit 698d53f

Please sign in to comment.