Skip to content

Commit

Permalink
fix: test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zcapitalz committed Jun 25, 2024
1 parent e6f235e commit 517ba78
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions retryer_test_cases.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ type testCase struct {
expectedCommands []string
}

// Add only test cases for plain mode (-json=false).
// Tests cases for json mode are generated automatically.
//
//nolint:unused
var testCases = []testCase{
{
Expand Down Expand Up @@ -48,12 +51,12 @@ var testCases = []testCase{
maxRetriesPerTest: 0,
maxTotalRetries: 0,
testCommandName: "go test",
testArgs: "-v -json -run=^TestFail$ -count=1 go-test-retryer/test",
testArgs: "-v -run=^TestFail$ -count=1 go-test-retryer/test",
verbose: false,
},
expectedExitCode: 1,
expectedCommands: []string{
"go test -v -json -run=^TestFail$ -count=1 go-test-retryer/test",
"go test -v -run=^TestFail$ -count=1 go-test-retryer/test",
},
},
{
Expand All @@ -63,12 +66,12 @@ var testCases = []testCase{
maxRetriesPerTest: 0,
maxTotalRetries: 1,
testCommandName: "go test",
testArgs: "-v -json -run=^TestFail$ -count=1 go-test-retryer/test",
testArgs: "-v -run=^TestFail$ -count=1 go-test-retryer/test",
verbose: false,
},
expectedExitCode: 1,
expectedCommands: []string{
"go test -v -json -run=^TestFail$ -count=1 go-test-retryer/test",
"go test -v -run=^TestFail$ -count=1 go-test-retryer/test",
},
},
{
Expand Down

0 comments on commit 517ba78

Please sign in to comment.