Skip to content

Commit a2715f4

Browse files
committed
longer timeout
1 parent c3eba17 commit a2715f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/firedamp/core.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
(def bad-fetch-msg "problem fetching")
2828

29-
(def timeout-after (mt/seconds 5))
29+
(def timeout-after (mt/seconds 10))
3030

3131
(def state (atom {:alarm-state ::good
3232
:last-update (time/now)}))

test/firedamp/core_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
(let [result (core/fetch-json-status! core/github)]
6868
(mt/advance clock (mt/seconds core/timeout-after))
6969
(is (thrown-with-msg? TimeoutException
70-
#"timed out after 5000.0 milliseconds" @result))
70+
#"timed out after 10000.0 milliseconds" @result))
7171
(is (= [core/github] @hits))))))))
7272

7373
(deftest get-next-state

0 commit comments

Comments
 (0)