liugddx commented on code in PR #4975:
URL: https://github.com/apache/seatunnel/pull/4975#discussion_r1264929494
##########
seatunnel-e2e/seatunnel-connector-v2-e2e/connector-redis-e2e/src/test/java/org/apache/seatunnel/e2e/connector/redis/RedisIT.java:
##########
@@ -192,4 +192,15 @@ public void testRedis(TestContainer container) throws
IOException, InterruptedEx
jedis.del("key_list");
Assertions.assertEquals(0, jedis.llen("key_list"));
}
+
+ @TestTemplate
+ public void testRedisWithExpire(TestContainer container)
+ throws IOException, InterruptedException {
+ Container.ExecResult execResult =
container.executeJob("/redis-to-redis-1.conf");
+ Assertions.assertEquals(0, execResult.getExitCode());
+ Assertions.assertEquals(100, jedis.llen("key_list"));
+ // Clear data to prevent data duplication in the next TestContainer
+ jedis.del("key_list");
Review Comment:
Use sleep instead of del to test this feature?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]