From 8ea352bb256a748433bed87e5e317ab696a5a811 Mon Sep 17 00:00:00 2001 From: tobi Date: Fri, 11 Apr 2025 12:31:58 +0200 Subject: [PATCH] read client messages in tests --- internal/processing/account/update_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/processing/account/update_test.go b/internal/processing/account/update_test.go index 45c478863..674502b75 100644 --- a/internal/processing/account/update_test.go +++ b/internal/processing/account/update_test.go @@ -352,6 +352,10 @@ func (suite *AccountUpdateTestSuite) TestAccountUpdateBotNotBot() { // Returned profile should be updated. suite.True(apiAccount.Bot) + // We should have an update in the client api channel. + msg, _ := suite.getClientMsg(5 * time.Second) + suite.NotNil(msg) + // Check database model of account as well. dbAccount, err := suite.db.GetAccountByID(ctx, testAccount.ID) if err != nil { @@ -374,6 +378,10 @@ func (suite *AccountUpdateTestSuite) TestAccountUpdateBotNotBot() { // Returned profile should be updated. suite.False(apiAccount.Bot) + // We should have an update in the client api channel. + msg, _ = suite.getClientMsg(5 * time.Second) + suite.NotNil(msg) + // Check database model of account as well. dbAccount, err = suite.db.GetAccountByID(ctx, testAccount.ID) if err != nil {