Skip to content

Commit

Permalink
Try to fix Node fetch error. #30
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15m committed Feb 5, 2024
1 parent 305dc77 commit 178c56c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sitefoxtest/e2etests.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

;(def browser-type pw/chromium)

(def base-url "http://localhost:8000")
(def base-url "http://127.0.0.1:8000")

(def log (j/call-in js/console [:log :bind] js/console " ---> "))
(def log-listeners (atom #{}))
Expand Down Expand Up @@ -71,7 +71,7 @@
(async done
(p/let [_ (log "Test: basic-site-test")
server (run-server "examples/nbb" "npm i --no-save; npm run serve" 8000)
res (js/fetch "http://localhost:8000/")
res (js/fetch base-url)
text (.text res)]
(p/catch
(p/do!
Expand Down

0 comments on commit 178c56c

Please sign in to comment.