From af21249e6746285de5c7a82423a133169bcc4f67 Mon Sep 17 00:00:00 2001 From: Alessio Date: Sat, 18 Jan 2025 20:38:32 -0800 Subject: [PATCH] Fix a broken integration test --- cmd/tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tests.sh b/cmd/tests.sh index c77095a..4626e78 100755 --- a/cmd/tests.sh +++ b/cmd/tests.sh @@ -303,7 +303,8 @@ test $(sqlite3 twitter.db "select is_stub from tweets where id = 145452142414465 test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454522147750260742") = 1 test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454526270809726977") = 0 # Check that it downloaded the fetchable user's profile image -test $(find profile_images/WhaleTherapist_profile* | wc -l) -ne 0 +handle="$(sqlite3 twitter.db "select handle from users where id like 1365863538393309184")" +test "$(find profile_images/${handle}_profile* | wc -l)" -ne 0 # Test an expanding ("Show more") tweet