mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 08:53:15 +01:00
chore: update iterations to protect against race (#1927)
* chore: update iterations to protect against race --------- Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
This commit is contained in:
parent
d5d95da3b6
commit
d21fa84335
@ -28,7 +28,7 @@ func TestHandler_handleAttestationStarted(t *testing.T) {
|
|||||||
// note: this model depends on a background reader. Multiple iterations ensures that the
|
// 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
|
// 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).
|
// test harness completes (which is a fake event loop anyway).
|
||||||
iterations: 2,
|
iterations: 100,
|
||||||
eventFn: func(t *testing.T) partybus.Event {
|
eventFn: func(t *testing.T) partybus.Event {
|
||||||
reader := strings.NewReader("contents\nof\nstuff!")
|
reader := strings.NewReader("contents\nof\nstuff!")
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ func TestHandler_handleAttestationStarted(t *testing.T) {
|
|||||||
// note: this model depends on a background reader. Multiple iterations ensures that the
|
// 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
|
// 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).
|
// test harness completes (which is a fake event loop anyway).
|
||||||
iterations: 2,
|
iterations: 100,
|
||||||
eventFn: func(t *testing.T) partybus.Event {
|
eventFn: func(t *testing.T) partybus.Event {
|
||||||
reader := strings.NewReader("contents\nof\nstuff!")
|
reader := strings.NewReader("contents\nof\nstuff!")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user