From 2971aedd060da37f8cf2c8e6d6e5a3b8b952c976 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Sun, 26 Jan 2025 11:44:41 -0800 Subject: [PATCH] Fix check for absence of notification --- internal/processing/workers/fromclientapi_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/processing/workers/fromclientapi_test.go b/internal/processing/workers/fromclientapi_test.go index b5ac3c185..b893a3e73 100644 --- a/internal/processing/workers/fromclientapi_test.go +++ b/internal/processing/workers/fromclientapi_test.go @@ -441,7 +441,7 @@ func (suite *FromClientAPITestSuite) TestProcessCreateBackfilledStatusWithNotifi ) // No notification should appear for the status. - if !testrig.WaitFor(func() bool { + if testrig.WaitFor(func() bool { var err error _, err = testStructs.State.DB.GetNotification( ctx, @@ -450,9 +450,9 @@ func (suite *FromClientAPITestSuite) TestProcessCreateBackfilledStatusWithNotifi postingAccount.ID, status.ID, ) - return errors.Is(err, db.ErrNoEntries) + return err == nil }) { - suite.FailNow("timed out waiting for absence of status notification") + suite.FailNow("a status notification was created, but should not have been") } // There should be no message in the notification stream.