From 2334508812cd50058b8e3c18f909d825a1a5f664 Mon Sep 17 00:00:00 2001 From: Cam Saul <cammsaul@gmail.com> Date: Wed, 17 Apr 2019 20:32:03 -0700 Subject: [PATCH] Fix occasional test failure :wrench: --- test/metabase/async/api_response_test.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/metabase/async/api_response_test.clj b/test/metabase/async/api_response_test.clj index d62b3228ecd..8e6f64d660f 100644 --- a/test/metabase/async/api_response_test.clj +++ b/test/metabase/async/api_response_test.clj @@ -107,8 +107,10 @@ (expect (tu.async/with-chans [input-chan] (with-response [{:keys [output-chan]} input-chan] + ;; output-chan may or may not get the InterruptedException written to it -- it's a race condition -- we're just + ;; want to make sure it closes (a/close! input-chan) - (wait-for-close output-chan)))) + (not= ::tu.async/timed-out (tu.async/wait-for-result output-chan))))) ;; ...as should the output stream (expect -- GitLab