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

Problem with system-fixture #2

Open
fdabrao opened this issue May 14, 2023 · 1 comment
Open

Problem with system-fixture #2

fdabrao opened this issue May 14, 2023 · 1 comment

Comments

@fdabrao
Copy link

fdabrao commented May 14, 2023

This

(defn system-fixture
  []
  (fn [f]
    (when (nil? (system-state))
      (core/start-app {:opts {:profile :test}}))
    (f)))

when use with (use-fixtures :once with-system) is giving:
cause Wrong number of args (1) passed to: tanktest.franquias.test-utils/system-fixture

@yogthos
Copy link
Contributor

yogthos commented May 16, 2023

I think what's happening is that you're not calling the system-fixture as a function when you're creating fixtures. Try see if the following will work:

(use-fixtures :once (utils/system-fixture))

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