Skip to content

Commit

Permalink
Make Jetty websocket ping/pong test more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Oct 17, 2023
1 parent cd2cdcb commit 12fe13b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ring-jetty-adapter/test/ring/adapter/test/jetty.clj
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,8 @@
(Thread/sleep 100)
@(hato/close! ws)
(Thread/sleep 100)))
(is (= [[:ping "foo"] [:pong "foo"]]
@log))))
(is (= #{[:ping "foo"] [:pong "foo"]}
(set @log)))))

(testing "ping pong from client"
(let [log (atom [])
Expand Down

0 comments on commit 12fe13b

Please sign in to comment.