Skip to content

Commit

Permalink
numCases doesn't interfere tcell limit
Browse files Browse the repository at this point in the history
  • Loading branch information
tjmtmmnk committed Dec 13, 2020
1 parent a432d84 commit a19c30d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: go build

- name: Test
run: go test -v -coverpkg ./... -covermode atomic -coverprofile coverage.txt -tags fuzz -numCases 10 -numEvents 10 ./...
run: go test -v -coverpkg ./... -covermode atomic -coverprofile coverage.txt -tags fuzz -numCases 3000 -numEvents 10 ./...

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
4 changes: 2 additions & 2 deletions fuzzing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ func TestFuzz(t *testing.T) {
return b
}

// number of events in tcell.SimulationScreen is limited 10
for i := 0; i < rand.Intn(min(*numCases, 10)); i++ {
for i := 0; i < rand.Intn(*numCases)+10; i++ {
// number of events in tcell.SimulationScreen is limited 10
n := rand.Intn(min(*numEvents, 10))
events := make([]tcell.Event, n)
for i := 0; i < n; i++ {
Expand Down

0 comments on commit a19c30d

Please sign in to comment.