Skip to content

Incompatible with ScalaTest's AsyncTestSuite #135

@shawjef3

Description

@shawjef3

DockerKit has an implicit ExecutionContext, which along with the one in ScalaTest's AsyncTestSuite causes an ambiguity error. Since DockerKit's ExecutionContext is really only for its own internal calls, it should be made private.

Error:(16, 34) ambiguous implicit values:
 both method executionContext in trait AsyncTestSuite of type => scala.concurrent.ExecutionContext
 and value dockerExecutionContext in trait DockerKit of type => scala.concurrent.ExecutionContext
 match expected type scala.concurrent.ExecutionContext

A workaround is to have each class that uses them provide a disambiguating ExecutionContext. I don't see this as a good solution though, since I expect clients of DockerKit shouldn't be given the option of using its internal ExecutionContext.

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