From f48d881b707838025136273dcdfab0199884a563 Mon Sep 17 00:00:00 2001 From: Ignas Baranauskas Date: Mon, 22 Apr 2024 17:22:55 +0100 Subject: [PATCH] Fix test for gomega version bump --- internal/internal_integration/interrupt_and_timeout_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/internal_integration/interrupt_and_timeout_test.go b/internal/internal_integration/interrupt_and_timeout_test.go index 566866b24..654672c1d 100644 --- a/internal/internal_integration/interrupt_and_timeout_test.go +++ b/internal/internal_integration/interrupt_and_timeout_test.go @@ -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 : foo\nto equal\n : 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 : foo\nto equal\n : bar"), clLine(1))) Ω(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 : foo\nto equal\n : bar")) })