From ebf8ad5947cd656f13cc8b1dd5564cfde343d512 Mon Sep 17 00:00:00 2001 From: Alessio Date: Wed, 6 Nov 2024 22:11:19 -0800 Subject: [PATCH] Fix an integration test due to twitter changing the way block works --- cmd/tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tests.sh b/cmd/tests.sh index 326b153..a213ff4 100755 --- a/cmd/tests.sh +++ b/cmd/tests.sh @@ -314,10 +314,10 @@ test "$(sqlite3 twitter.db "select text from tweets where id = 16496003547475722 # Test updating a tombstone (e.g., the QT-ing user is blocked but acct is not priv) tw fetch_tweet https://twitter.com/michaelmalice/status/1479540552081326085 -test "$(sqlite3 twitter.db "select tombstone_type, text from tweets where id = 1479540319410696192")" = "3|" +test "$(sqlite3 twitter.db "select tombstone_type is null, text from tweets where id = 1479540319410696192")" = "0|" tw fetch_tweet_only 1479540319410696192 # Should remove the tombstone type and update the text -test "$(sqlite3 twitter.db "select tombstone_type, text from tweets where id = 1479540319410696192")" = "|Eyyy! Look! Another one on my block list! Well done @michaelmalice, you silck person." +test "$(sqlite3 twitter.db "select tombstone_type is null, text from tweets where id = 1479540319410696192")" = "1|Eyyy! Look! Another one on my block list! Well done @michaelmalice, you silck person." # Test no-clobbering of num_likes/num_retweets etc when a tweet gets deleted/tombstoned