                               :duration     {:hours   0
                                              :minutes 0
                                              :seconds 37}}))
-        (let [command-response (<!! response-chan)]
+        (let [command-response (try-take!! response-chan)]
           (is (:error command-response))))
 
       (finally (ws/close socket)))))

                            {:command      "start-timer"
                             :timer-id     timer-id
                             :started-time current-time}))
      (is (= timer-id (get @response1 :timer-id)))
      (is (= current-time (get @response1 :started-time)))

      (testing "All clients with the same gid receive the broadcast"
        (is (= @response1 @response2)))

      (testing "Some other gid should not receive the broadcast"
        (is (= :not-received
               (deref response3 100 :not-received))))
      
      (finally
        (ws/close socket1)

                             {:command      "create-and-start-timer"
                              :project-id   (get gen-projects "foo")
                              :started-time current-time}))
        (let [command-response (try-take!! response-chan)]
          (is (= (get gen-projects "foo")
                 (:project-id command-response)))
          (is (:create? command-response))
