diff options
author | Vitaly Takmazov | 2024-11-25 02:15:53 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-11-25 02:15:53 +0300 |
commit | 0e553101238ede684ace65be2b570dd60c2651b4 (patch) | |
tree | 9a15c43c2decd550591ad5c2648a53a342847493 /src/test/java/com/juick | |
parent | 5e392a11f885741c03e99c3ffe73e9a5ef34fbf1 (diff) |
CI: reenable sqlite tests
Diffstat (limited to 'src/test/java/com/juick')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 84034428..34e72ec7 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -2096,8 +2096,9 @@ public class ServerTests { User newUser = userService.createUser("newuser", "assword").orElseThrow(IllegalStateException::new); assertThat(newUser.getUid(), greaterThanOrEqualTo(0)); assertThat(newUser.getSeen(), is(nullValue())); - messagesService.createMessage(newUser.getUid(), "YO", null, Set.of()); - assertThat(userService.getUserByUID(newUser.getUid()).get().getSeen(), greaterThanOrEqualTo(now)); + var mid = messagesService.createMessage(newUser.getUid(), "YO", null, Set.of()); + var msg = messagesService.getMessage(mid); + assertThat(userService.getUserByUID(newUser.getUid()).get().getSeen(), is(msg.get().getCreated())); } @Test |