This commit is contained in:
BIN
publisher/test/net/deertopia/publisher/roam-test.db
Normal file
BIN
publisher/test/net/deertopia/publisher/roam-test.db
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
|||||||
|
:PROPERTIES:
|
||||||
|
:ID: 23ee464d-b13e-4649-826f-622d0edef24e
|
||||||
|
:DeertopiaVisibility: public
|
||||||
|
:END:
|
||||||
|
#+title: awesome file
|
||||||
|
|
||||||
|
wow!
|
||||||
@@ -7,16 +7,10 @@
|
|||||||
[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 (sut/status)))
|
(assert (not= :running (sut/status)))
|
||||||
(sut/start!)
|
(sut/start!)
|
||||||
(t/is (= :running (sut/status)))
|
(t/is (= :running (sut/status)))
|
||||||
(sut/stop!))
|
|
||||||
|
|
||||||
(t/deftest can-get-real-server-root
|
|
||||||
;; 서버가 벌써 시작한 다음에 이 테스트 하면 잘못됩니다.
|
|
||||||
(assert (not= :running (sut/status)))
|
|
||||||
(sut/start!)
|
|
||||||
(t/is (->> (format "http://localhost:%d" (::publisher/port cfg/*cfg*))
|
(t/is (->> (format "http://localhost:%d" (::publisher/port cfg/*cfg*))
|
||||||
slurp
|
slurp
|
||||||
string?))
|
string?))
|
||||||
|
|||||||
Reference in New Issue
Block a user