Compare commits
1 Commits
fb2974bb21
...
e73148ef3d
| Author | SHA1 | Date | |
|---|---|---|---|
| e73148ef3d |
@@ -8,14 +8,14 @@
|
|||||||
[net.deertopia.publisher :as-alias publisher]))
|
[net.deertopia.publisher :as-alias publisher]))
|
||||||
|
|
||||||
(t/deftest server-is-running
|
(t/deftest server-is-running
|
||||||
;; 서버가 벌써 시작한 다음에 이 테스트 하면 잘못됩니다.
|
;; 서버는 시작 전에 이 테스트 하면 잘못됩니다.
|
||||||
(assert (not= :running (server/status)))
|
(assert (not= :running (server/status)))
|
||||||
(server/start!)
|
(server/start!)
|
||||||
(t/is (= :running (server/status)))
|
(t/is (= :running (server/status)))
|
||||||
(server/stop!))
|
(server/stop!))
|
||||||
|
|
||||||
(t/deftest can-get-real-server-root
|
(t/deftest can-get-real-server-root
|
||||||
;; 서버가 벌써 시작한 다음에 이 테스트 하면 잘못됩니다.
|
;; 서버는 시작 전에 이 테스트 하면 잘못됩니다.
|
||||||
(assert (not= :running (server/status)))
|
(assert (not= :running (server/status)))
|
||||||
(server/start!)
|
(server/start!)
|
||||||
(t/is (->> (format "http://localhost:%d" (::publisher/port cfg/*cfg*))
|
(t/is (->> (format "http://localhost:%d" (::publisher/port cfg/*cfg*))
|
||||||
|
|||||||
Reference in New Issue
Block a user