Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using fluree.db.api in tests causes the test runner to never exit #163

Closed
filipesilva opened this issue Mar 29, 2022 · 1 comment
Closed

Comments

@filipesilva
Copy link

filipesilva commented Mar 29, 2022

I see this while using com/fluree.db@1.0.0-rc34 with fluree/ledger@1.0.0-beta19, and the https://github.com/cognitect-labs/test-runner test runner with a simple test:

(deftest repro
  (let [conn (fdb/connect "http://localhost:8090")]
    @(fdb/new-ledger conn ledger)
    (fdb/wait-for-ledger-ready conn ledger)
    @(fdb/transact conn ledger schema-tx)
    (run! #(->> %
                new-event
                vector
                (fdb/transact conn ledger)
                deref)
          (range 4))
    (is (seq (-> conn
                 (fdb/db ledger)
                 (fdb/query {:select ["*"]
                             :from   "event"})
                 deref)))
    (fdb/close conn)))

Running this test with the test runner will hang forever after the tests finish:

...
Ran 1 tests containing 1 assertions.
0 failures, 0 errors.

I created a repro in https://github.com/filipesilva/fluree-test-hang that you can use by following these steps:

git clone https://github.com/filipesilva/fluree-test-hang
cd fluree-test-hang
docker-compose up -d fluree
clojure -X:test
@bplatz
Copy link
Contributor

bplatz commented Sep 20, 2024

This issue no longer exists - but feel free to reopen if it exists in a specific environment.

@bplatz bplatz closed this as completed Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants