test: twitterapi: fix another possible test failure case

2 jobs for testfix/twitter-api in 5 minutes and 12 seconds (queued for 1 second)
Status Job ID Name Coverage
  Lint
passed #15706
lint

00:02:52

 
  Test
passed #15707
unit-testing

00:02:19