git » sdk » commit e44e4ea

Make all timeouts in this file 3000

author Eric Roberts
2026-08-25 14:51:31 UTC
committer Stephen Paul Weber
2026-08-26 13:27:13 UTC
parent 6c2742eaa8196d51e5482f0b03fb8bd48a958313

Make all timeouts in this file 3000

We were doing it on almost every test. The tests that didn't specify a timeout
were timing out in CI. Seems like we should just apply to every test.

test/TestSqlite.hx +1 -26

diff --git a/test/TestSqlite.hx b/test/TestSqlite.hx
index 35cda77..cc59750 100644
--- a/test/TestSqlite.hx
+++ b/test/TestSqlite.hx
@@ -86,6 +86,7 @@ class MockMediaStore implements MediaStore {
 }
 
 @:access(borogove)
+@:timeout(3000)
 class TestSqlite extends utest.Test {
 	var persistence: Sqlite;
 	var mediaStore: MockMediaStore;
@@ -95,7 +96,6 @@ class TestSqlite extends utest.Test {
 		persistence = new Sqlite("file:" + ID.unique() + "?mode=memory&cache=shared", mediaStore);
 	}
 
-	@:timeout(3000)
 	public function testOrder(async: Async) {
 		final account = "alice@example.com";
 		final builder = new ChatMessageBuilder();
@@ -136,7 +136,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testMessagesBefore(async: Async) {
 		final account = "alice@example.com";
 		final builder = new ChatMessageBuilder();
@@ -262,7 +261,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testMessagesBeforePM(async: Async) {
 		final account = "alice@example.com";
 		final builder = new ChatMessageBuilder();
@@ -331,7 +329,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testMessagesAfter(async: Async) {
 		final account = "alice@example.com";
 		final builder = new ChatMessageBuilder();
@@ -388,7 +385,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testMessagesAfterPoint(async: Async) {
 		final account = "alice@example.com";
 		final builder = new ChatMessageBuilder();
@@ -525,7 +521,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testStoreChats(async: Async) {
 		final account = "alice@example.com";
 		final chat = new DirectChat(cast null, cast null, persistence, "hatter@example.com");
@@ -552,7 +547,6 @@ class TestSqlite extends utest.Test {
 		}, 200);
 	}
 
-	@:timeout(3000)
 	public function testGetMessage(async: Async) {
 		final account = "alice@example.com";
 		final builder = new ChatMessageBuilder();
@@ -583,7 +577,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testStoreReaction(async: Async) {
 		final account = "alice@example.com";
 		final builder = new ChatMessageBuilder();
@@ -626,7 +619,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testUpdateMessageStatus(async: Async) {
 		final account = "alice@example.com";
 		final builder = new ChatMessageBuilder();
@@ -651,7 +643,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testSearchMessages(async: Async) {
 		final account = "alice@example.com";
 		final builder = new ChatMessageBuilder();
@@ -690,7 +681,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testRemoveAccount(async: Async) {
 		final account1 = "alice@example.com";
 		final account2 = "bob@example.com";
@@ -714,7 +704,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testGetChatUnreadDetails(async: Async) {
 		final account = "alice@example.com";
 		final chat = new DirectChat(cast null, cast null, persistence, "hatter@example.com");
@@ -755,7 +744,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testMedia(async: Async) {
 		final bytes = haxe.io.Bytes.ofString("hello");
 		persistence.storeMedia("image/png", bytes).then(_ -> {
@@ -774,7 +762,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testHydrateReplyTo(async: Async) {
 		final account = "alice@example.com";
 		final builder = new ChatMessageBuilder();
@@ -844,7 +831,6 @@ class TestSqlite extends utest.Test {
 		}, 200);
 	}
 
-	@:timeout(3000)
 	public function testGetChatsUsesMemberPresenceForDirectChats(async: Async) {
 		final account = "alice@example.com";
 		final chat = new DirectChat(cast null, cast null, persistence, "hatter@example.com");
@@ -884,7 +870,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testGetChatsHydratesMembersForNameAndMavUntil(async: Async) {
 		final account = "alice@example.com";
 		final chat = new Channel(cast null, cast null, persistence, "room-chat-hydrate@example.com");
@@ -967,7 +952,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testStoreStreamManamagementAndGetStreamManagement(async: Async) {
 		persistence.storeLogin("alice@example.com", "", "", null, null).then(_ ->
 			persistence.storeStreamManagement("alice@example.com", Bytes.ofHex("01020004").getData(), "ZZ")
@@ -981,7 +965,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testGetMembersHydratesPersistedMemberData(async: Async) {
 		final account = "alice@example.com";
 		final chat = new Channel(cast null, cast null, persistence, "room-members-1@example.com");
@@ -1015,7 +998,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testStoreMemberUpdatesMergesExistingMemberData(async: Async) {
 		final account = "alice@example.com";
 		final chat = new Channel(cast null, cast null, persistence, "room-members-2@example.com");
@@ -1057,7 +1039,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testStoreMemberUpdatesClearsOmittedFullListAffiliations(async: Async) {
 		final account = "alice@example.com";
 		final chat = new Channel(cast null, cast null, persistence, "room-members-2b@example.com");
@@ -1114,7 +1095,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testStoreMemberUpdatesMatchesExistingMemberByTrueJid(async: Async) {
 		final account = "alice@example.com";
 		final chat = new Channel(cast null, cast null, persistence, "room-members-3@example.com");
@@ -1154,7 +1134,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testClearMemberPresenceOnlyClearsTargetedChat(async: Async) {
 		final account = "alice@example.com";
 		final chat1 = new Channel(cast null, cast null, persistence, "room-members-4a@example.com");
@@ -1206,7 +1185,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testGetMembersFiltersHiddenRowsForNonModerators(async: Async) {
 		final account = "alice@example.com";
 		final chat = new Channel(cast null, cast null, persistence, "room-members-5@example.com");
@@ -1228,7 +1206,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testGetMembersIncludesModeratorVisibleRows(async: Async) {
 		final account = "alice@example.com";
 		final chat = new Channel(cast null, cast null, persistence, "room-members-6@example.com");
@@ -1250,7 +1227,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testGetMemberDetailsReturnsNullForIncompleteRows(async: Async) {
 		final account = "alice@example.com";
 		final chat = new Channel(cast null, cast null, persistence, "room-members-7@example.com");
@@ -1295,7 +1271,6 @@ class TestSqlite extends utest.Test {
 		});
 	}
 
-	@:timeout(3000)
 	public function testVoiceRequests(async: Async) {
 		final account = "alice@example.com";
 		final chat = new Channel(cast null, cast null, persistence, "room-voice-requests@example.com");