Skip to content

Commit

Permalink
Fix running tests on mac (#7768)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlaaad committed Jun 29, 2023
1 parent a64bce5 commit a1e7d61
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions editor/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,7 @@

:uberjar-exclusions [#"^natives/"]

:profiles {:test {:injections [(defonce initialize-test-prerequisites
(do
(com.defold.libs.ResourceUnpacker/unpackResources)
(javafx.application.Platform/startup
(fn []
(com.jogamp.opengl.GLProfile/initSingleton)))))]
:profiles {:test {:injections [(com.defold.libs.ResourceUnpacker/unpackResources)]
:resource-paths ["test/resources"]
:jvm-opts ["-Ddefold.tests=true"]}
:preflight {:dependencies [[jonase/kibit "0.1.6" :exclusions [org.clojure/clojure]]
Expand Down
1 change: 0 additions & 1 deletion editor/test/integration/animation_set_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
(map remove-empty-channels)
(apply merge-with (constantly ::conflicting-data)))])))]
(testing "Bone exists in skeleton"
(prn "MAWE BONE ID" bone-id)
(is (some #(= bone-id %) bone-list)))

(testing "Channels are not animated by multiple tracks"
Expand Down
2 changes: 1 addition & 1 deletion editor/test/integration/lsp_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@
(make-test-server-launcher
{"initialize" (constantly {:capabilities {:diagnosticProvider {:workspaceDiagnostics true}}})
"initialized" (constantly nil)
"workspace/diagnostic" (fn [_ _] (throw (ex-info "Fail!" {})))
"workspace/diagnostic" (fn [_ _] (throw (ex-info "This exception should be correctly handled by lsp test" {})))
"shutdown" (constantly nil)
"exit" (constantly nil)})}})
_ (Thread/sleep 100)
Expand Down

0 comments on commit a1e7d61

Please sign in to comment.