Skip to content

Commit

Permalink
add 404 test
Browse files Browse the repository at this point in the history
  • Loading branch information
liudezhi2098 committed Nov 29, 2024
1 parent a1df211 commit f18d8a6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,10 @@ public void testTopicGetMessageIdByTimestamp() throws Exception {
MessageId msgId =
admin.topics().getMessageIdByTimestamp(topic + "-partition-0", System.currentTimeMillis());
Assert.assertNotNull(msgId);
try {
admin.topics().getMessageIdByTimestamp(topic + "-partition-1", System.currentTimeMillis());
} catch (Exception e) {
Assert.assertEquals(e.getClass(), PulsarAdminException.NotFoundException.class);
}
}
}

0 comments on commit f18d8a6

Please sign in to comment.