Skip to content

Commit 845225d

Browse files
Stop relying on the clock advancing in the spent run time test
1 parent 309cf01 commit 845225d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎internal/triage/triage_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ func TestRunTriagesEveryNewAdvisoryWithinItsTime(t *testing.T) {
712712

713713
func TestRunLeavesTheAdvisoriesToTheNextRunOnceItsTimeIsSpent(t *testing.T) {
714714
defer func(d time.Duration) { maxRunDuration = d }(maxRunDuration)
715-
maxRunDuration = maxAdvisoryDuration
715+
maxRunDuration = maxAdvisoryDuration - time.Second
716716
gh, eng := newFixture(), &fakeEngine{}
717717
var logs strings.Builder
718718

0 commit comments

Comments
 (0)