Skip to content

Commit a45ea5c

Browse files
committed
remove redundant test
1 parent e930949 commit a45ea5c

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

src/test/java/com/example/ChatModelTest.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,9 @@ void addMessageFromBackgroundThreadShouldWork() throws InterruptedException {
3535
t.start();
3636
t.join();
3737

38+
// Allow queue to be processed before proceeding to assert
3839
Thread.sleep(1000);
3940

4041
assertEquals(1, model.getMessages().size());
4142
}
42-
43-
@Test
44-
void fallbackModeShouldStillAdd() {
45-
ChatModel model = new ChatModel();
46-
47-
NtfyEventResponse msg = new NtfyEventResponse(
48-
"3", 300L, "message", "topic", "Fallback", null, null, null
49-
);
50-
51-
model.addMessage(msg);
52-
53-
assertEquals(1, model.getMessages().size());
54-
}
5543
}

0 commit comments

Comments
 (0)