Skip to content

Commit

Permalink
Merge pull request #5715 from r-vasquez/avoid-rp-check
Browse files Browse the repository at this point in the history
rpk: disable tune checkers in rp start unit test
  • Loading branch information
r-vasquez committed Aug 1, 2022
2 parents 9b41f3e + 241da98 commit 4ac7a21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/go/rpk/pkg/cli/cmd/redpanda/start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,10 @@ func TestStartCommand(t *testing.T) {
var out bytes.Buffer
logrus.SetOutput(&out)
c := NewStartCommand(fs, launcher)
c.SetArgs(tt.args)
// We disable --check flag to avoid running tuner checks in Afero's
// memory backed file system.
args := append([]string{"--check=false"}, tt.args...)
c.SetArgs(args)
err := c.Execute()
if tt.expectedErrMsg != "" {
require.Contains(st, err.Error(), tt.expectedErrMsg)
Expand Down

0 comments on commit 4ac7a21

Please sign in to comment.