Skip to content

Commit

Permalink
Fix test for gomega version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Ygnas committed Apr 22, 2024
1 parent 5474a26 commit f48d881
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ var _ = Describe("Interrupts and Timeouts", func() {
Ω(rt).Should(HaveTracked("A"))
Ω(reporter.Did.Find("A")).Should(HaveTimedOut(clLine(-1)))
Ω(reporter.Did.Find("A")).Should(HaveTimedOut(`A spec timeout occurred`))
Ω(reporter.Did.Find("A").Failure.AdditionalFailure).Should(HaveFailed(MatchRegexp("A spec timeout occurred and then the following failure was recorded in the timedout node before it exited:\nContext was cancelled after .*\nExpected\n <string>: foo\nto equal\n <string>: bar"), clLine(1)))
Ω(reporter.Did.Find("A").Failure.AdditionalFailure).Should(HaveFailed(MatchRegexp("A spec timeout occurred and then the following failure was recorded in the timedout node before it exited:\nContext was cancelled (cause: spec timeout occurred) after .*\nExpected\n <string>: foo\nto equal\n <string>: bar"), clLine(1)))

Check failure on line 927 in internal/internal_integration/interrupt_and_timeout_test.go

View workflow job for this annotation

GitHub Actions / Go stable

It 04/22/24 16:49:59.763
Ω(reporter.Did.Find("A").Failure.ProgressReport.Message).Should(Equal("{{bold}}This is the Progress Report generated when the spec timeout occurred:{{/}}"))
Ω(reporter.Did.Find("A").Failure.ProgressReport.AdditionalReports).Should(ConsistOf("Expected\n <string>: foo\nto equal\n <string>: bar"))
})
Expand Down

0 comments on commit f48d881

Please sign in to comment.