aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-28 01:46:13 +0300
committerGravatar Vitaly Takmazov2023-01-28 19:07:28 +0300
commit556d10c400add4b69d8832a40fb704fda4333080 (patch)
tree4b19255566ada761ddd23baa66c695906329f1a8 /src/test/java/com
parent906bf8ef21463f99820764807b656cb617b0aaa2 (diff)
Improve SQL server compatibility
Diffstat (limited to 'src/test/java/com')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index d695ffb8..ea1e6100 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -1599,7 +1599,7 @@ public class ServerTests {
assertThat(messagesService.recommendMessage(mid, pogo.getUid()),
is(MessagesService.RecommendStatus.Added));
jdbcTemplate.update("INSERT INTO favorites(user_id, user_uri, message_id, like_id, ts) "
- + "values (0, 'http://example.com/u/test', ?, 1, now())", mid);
+ + "values (0, 'http://example.com/u/test', ?, 1, ?)", mid, Date.from(Instant.now()));
assertThat(messagesService.getMessage(mid).get().getRecommendations().size(), is(4));
assertThat(CollectionUtils.isEqualCollection(
messagesService.getMessagesRecommendations(Collections.singletonList(mid)).stream()