Skip to content

Build error when using toEventually #1195

@AnthonyMDev

Description

@AnthonyMDev

Version: Nimble 13.7.1

When using .toEventually() in an async test, I'm getting this error:

Non-sendable result type 'SyncExpectation<Bool>' cannot be sent from nonisolated context in call to instance method 'toEventually(_:timeout:pollInterval:description:)'

I get this from a statement as simple as: await expect(true).toEventually(beFalse()).

I'm not sure if this is a bug or I'm doing something wrong.

I can get past this by using @preconcurrency import Nimble for now, but it looks like SyncExpectation and probably AsyncExpectation should conform to Sendable to make this error go away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions