aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-16 14:14:27 +0300
committerGravatar Vitaly Takmazov2018-04-16 14:14:27 +0300
commit350f6942078e67b15e160ecffc913ba0cef624be (patch)
treead52a91b540c85a9249ebbf35490110aa36f5bcb /juick-server/src/test
parent73afea037564c2565744d9e12a078dcf0a230a71 (diff)
server: do not make last read mark lower
Diffstat (limited to 'juick-server/src/test')
-rw-r--r--juick-server/src/test/java/com/juick/server/tests/ServerTests.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
index d09a509d..046e0e7d 100644
--- a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
@@ -767,5 +767,7 @@ public class ServerTests {
messagesService.getReplies(ugnich, mid);
assertThat(lastRead.apply(ugnich, mid), is(1));
assertThat(messagesService.getUnread(ugnich).size(), is(0));
+ messagesService.setLastReadComment(ugnich, mid, 0);
+ assertThat(lastRead.apply(ugnich, mid), is(1));
}
}