Skip to content

Commit ed467ca

Browse files
author
shubhang.balkundi
committed
changes sleep duration and join-window for join tests
1 parent 9fc470d commit ed467ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/ziggurat/streams_test.clj

+4-4
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
(-> (ziggurat-config)
235235
(assoc-in [:stream-router :default :consumer-type] :stream-joins)
236236
(assoc-in [:stream-router :default :input-topics] {:topic {:name "topic"} :another-test-topic {:name "another-test-topic"}})
237-
(assoc-in [:stream-router :default :join-cfg] {:topic-and-another-test-topic {:join-window-ms 5000 :join-type :inner}})
237+
(assoc-in [:stream-router :default :join-cfg] {:topic-and-another-test-topic {:join-window-ms 6000 :join-type :inner}})
238238
(assoc-in [:stream-router :default :application-id] (rand-application-id))
239239
(assoc-in [:stream-router :default :changelog-topic-replication-factor] changelog-topic-replication-factor)))]
240240
(Thread/sleep 10000) ;;waiting for streams to start
@@ -246,7 +246,7 @@
246246
kvs
247247
(props)
248248
(MockTime.))
249-
(Thread/sleep 5000) ;;wating for streams to consume messages
249+
(Thread/sleep 10000) ;;wating for streams to consume messages
250250
(stop-streams streams)
251251
(is (= times @message-received-count)))))))
252252

@@ -264,7 +264,7 @@
264264
(-> (ziggurat-config)
265265
(assoc-in [:stream-router :default :consumer-type] :stream-joins)
266266
(assoc-in [:stream-router :default :input-topics] {:topic {:name "topic"} :another-test-topic {:name "another-test-topic"}})
267-
(assoc-in [:stream-router :default :join-cfg] {:topic-and-another-test-topic {:join-window-ms 5000 :join-type :left}})
267+
(assoc-in [:stream-router :default :join-cfg] {:topic-and-another-test-topic {:join-window-ms 6000 :join-type :left}})
268268
(assoc-in [:stream-router :default :application-id] (rand-application-id))
269269
(assoc-in [:stream-router :default :changelog-topic-replication-factor] changelog-topic-replication-factor)))]
270270
(Thread/sleep 10000) ;;waiting for streams to start
@@ -276,7 +276,7 @@
276276
kvs
277277
(props)
278278
(MockTime.))
279-
(Thread/sleep 5000) ;;wating for streams to consume messages
279+
(Thread/sleep 10000) ;;wating for streams to consume messages
280280
(stop-streams streams)
281281
(is (= times @message-received-count)))))))
282282

0 commit comments

Comments
 (0)