Skip to content

Commit

Permalink
chore: update iterations to protect against race (#1927)
Browse files Browse the repository at this point in the history
* chore: update iterations to protect against race
---------

Signed-off-by: Christopher Phillips <[email protected]>
  • Loading branch information
spiffcs authored Jul 10, 2023
1 parent d5d95da commit d21fa84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/syft/cli/ui/handle_attestation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestHandler_handleAttestationStarted(t *testing.T) {
// note: this model depends on a background reader. Multiple iterations ensures that the
// reader has time to at least start and process the test fixture before the runModel
// test harness completes (which is a fake event loop anyway).
iterations: 2,
iterations: 100,
eventFn: func(t *testing.T) partybus.Event {
reader := strings.NewReader("contents\nof\nstuff!")

Expand Down Expand Up @@ -61,7 +61,7 @@ func TestHandler_handleAttestationStarted(t *testing.T) {
// note: this model depends on a background reader. Multiple iterations ensures that the
// reader has time to at least start and process the test fixture before the runModel
// test harness completes (which is a fake event loop anyway).
iterations: 2,
iterations: 100,
eventFn: func(t *testing.T) partybus.Event {
reader := strings.NewReader("contents\nof\nstuff!")

Expand Down

0 comments on commit d21fa84

Please sign in to comment.