Skip to content

Commit c2deabe

Browse files
committed
Extending IntegrationPatience trait in tests.
1 parent 45435c8 commit c2deabe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

embedded-kafka/src/test/scala/net/manub/embeddedkafka/EmbeddedKafkaSpecSupport.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ import akka.actor.{Actor, ActorRef, ActorSystem, Props}
66
import akka.io.Tcp.{Connect, Connected}
77
import akka.io.{IO, Tcp}
88
import akka.testkit.{ImplicitSender, TestKit}
9-
import org.scalatest.concurrent.{JavaFutures, ScalaFutures}
9+
import org.scalatest.concurrent.{Eventually, IntegrationPatience, JavaFutures, ScalaFutures}
1010
import org.scalatest.{BeforeAndAfterAll, Matchers, WordSpecLike}
1111

1212
import scala.concurrent.duration._
1313
import scala.language.postfixOps
1414

15-
abstract class EmbeddedKafkaSpecSupport extends TestKit(ActorSystem("embedded-kafka-spec")) with WordSpecLike with Matchers
16-
with ImplicitSender with BeforeAndAfterAll with ScalaFutures with JavaFutures {
15+
abstract class EmbeddedKafkaSpecSupport extends TestKit(ActorSystem("embedded-kafka-spec"))
16+
with WordSpecLike with Matchers with ImplicitSender with BeforeAndAfterAll with ScalaFutures with JavaFutures
17+
with Eventually with IntegrationPatience {
1718

1819
def kafkaIsAvailable(kafkaPort: Int = 6001): Unit = {
1920
system.actorOf(TcpClient.props(new InetSocketAddress("localhost", kafkaPort), testActor))

0 commit comments

Comments
 (0)