Skip to content

Commit

Permalink
Wait for more
Browse files Browse the repository at this point in the history
  • Loading branch information
AL333Z committed Sep 17, 2024
1 parent 57e5bc9 commit 45a6e6c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import scala.concurrent.duration._
* This is used in integration tests for the various implemented queue providers.
*/
abstract class QueueClientSuite extends CatsEffectSuite {
override def munitTimeout: Duration = 1.minute

def optBoolean(varName: String): IO[Option[Boolean]] =
optString(varName).map(_.map(_.toBoolean))
Expand Down Expand Up @@ -111,7 +112,7 @@ abstract class QueueClientSuite extends CatsEffectSuite {
_ <- assertIO(puller.pullBatch(1, 1.second), Chunk.empty)
_ <- IO.sleep(2.seconds)
msg <- puller
.pullBatch(1, 1.second)
.pullBatch(1, 10.second) // waiting 10 sec, some cloud provider is really slow in non-premium plans
.map(_.head.getOrElse(fail("expected a message, got nothing.")))
_ = assertEquals(msg.rawPayload, "delayed message")
_ = assert(metadataContains(msg.metadata, Map("metadata-key" -> "value")))
Expand Down

0 comments on commit 45a6e6c

Please sign in to comment.