Skip to content

Commit

Permalink
Remove initial check for invariant checker, otherwise the threshold i…
Browse files Browse the repository at this point in the history
…s not used properly
  • Loading branch information
johscheuer committed Aug 22, 2023
1 parent ddd7846 commit aa7272b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions e2e/fixtures/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,8 @@ func CheckInvariant(
threshold time.Duration,
f func() error,
) error {
err := f()
if err != nil {
return fmt.Errorf("invariant %s not true at beginning of test: %w", invariantName, err)
}
var waitGroup sync.WaitGroup
ticker := time.NewTicker(100 * time.Millisecond)
ticker := time.NewTicker(250 * time.Millisecond)
var last error
testFailed := false
quit := make(chan struct{})
Expand Down

0 comments on commit aa7272b

Please sign in to comment.