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

Usage with #[tokio::test] #36

Closed
mkpankov opened this issue Feb 3, 2020 · 2 comments
Closed

Usage with #[tokio::test] #36

mkpankov opened this issue Feb 3, 2020 · 2 comments
Labels
next release Issues that are meant to release with next minor/major release
Milestone

Comments

@mkpankov
Copy link

mkpankov commented Feb 3, 2020

Currently it doesn't seem to work:

    #[tokio::test]
    async fn test_case(name: &str) {
        
    }

Output:

error: the test function cannot accept arguments
   --> iml-services/iml-devices/src/db.rs:578:24
    |
578 |     async fn test_case(name: &str) {
    |                        ^^^^^^^^^^

Is there a way to provide a test_case::test_case_tokio macro to support async tests?

@frondeus
Copy link
Owner

frondeus commented Feb 5, 2020

That'd be cool... However I'd like to hide it under feature gate.

@frondeus frondeus added the next release Issues that are meant to release with next minor/major release label Mar 19, 2020
@frondeus frondeus added this to the v1.1.0 milestone Mar 19, 2020
@luke-biel
Copy link
Collaborator

It is fixed now via #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release Issues that are meant to release with next minor/major release
Projects
None yet
Development

No branches or pull requests

3 participants