fix tester-reported bugs

This commit is contained in:
2026-04-21 11:09:18 -06:00
parent 6631ad8e1f
commit 489543ffca
8 changed files with 140 additions and 123 deletions

View File

@@ -84,6 +84,7 @@ public class ChatRealtimeClient implements WebSocket.Listener {
public void initializeState(List<ConversationResponse> conversations) {
synchronized (lock) {
globalConversations.clear();
readConversationIds.clear();
for (ConversationResponse conv : conversations) {
globalConversations.put(conv.getId(), conv);
}

View File

@@ -183,7 +183,7 @@ class ValidatorTest {
//isValidPhoneNumber
@Test
void isValidPhoneNumber_validFormat_returnsEmpty() {
assertTrue(Validator.isValidPhoneNumber("403-555-1234", "Phone").isEmpty());
assertTrue(Validator.isValidPhoneNumber("(403) 555-1234", "Phone").isEmpty());
}
@Test