aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/server/tests
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-02-03 06:39:25 +0300
committerGravatar Vitaly Takmazov2023-02-03 06:39:25 +0300
commit89f20b0ff36c8413adc2aa9e3c5226ae2eed2101 (patch)
treefe56fa9f8de597ff313c334b69ffafe5adf0b95d /src/test/java/com/juick/server/tests
parent73b8c2dc544df207d8c7b9e36d20955ff1d88577 (diff)
messages_txt -> messages
Diffstat (limited to 'src/test/java/com/juick/server/tests')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java4
1 files changed, 2 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 414ad2ab..f297ee2e 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -1421,13 +1421,13 @@ public class ServerTests {
is(true));
assertThat(messagesService.getReply(updatedComment.getMid(), updatedComment.getRid()).getUser(),
is(archiveUser));
- jdbcTemplate.update("UPDATE messages_txt SET updated_at=? WHERE message_id=?",
+ jdbcTemplate.update("UPDATE messages SET updated_at=? WHERE message_id=?",
Instant.now().minus(100, ChronoUnit.HOURS).atOffset(ZoneOffset.UTC),
original.getMid());
assertThat(messagesService.deleteMessage(ugnich.getUid(), original.getMid()), is(true));
assertThat(messagesService.getMessage(original.getMid()).orElseThrow().getUser(), is(archiveUser));
- jdbcTemplate.update("UPDATE messages_txt SET updated_at=? WHERE message_id=?",
+ jdbcTemplate.update("UPDATE messages SET updated_at=? WHERE message_id=?",
Instant.now().atOffset(ZoneOffset.UTC),
original.getMid());
assertThat(messagesService.deleteMessage(ugnich.getUid(), original.getMid()), is(false));