mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 04:32:25 -05:00
read client messages in tests
This commit is contained in:
parent
e796f3b093
commit
8ea352bb25
1 changed files with 8 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue