Skip to content

Commit 7987f0c

Browse files
committed
Increase sleep time in Kinesis integration tests (#30)
It fixes the flaky tests.
1 parent 844ca2e commit 7987f0c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

kinesis/src/it/scala/com/snowplowanalytics/snowplow/collectors/scalastream/it/core/CustomPathsSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CustomPathsSpec extends Specification with Localstack with CatsEffect {
4848

4949
for {
5050
_ <- Http.statuses(requests)
51-
_ <- IO.sleep(5.second)
51+
_ <- IO.sleep(30.second)
5252
collectorOutput <- Kinesis.readOutput(streamGood, streamBad)
5353
outputPaths = collectorOutput.good.sortBy(_.getTimestamp()).map(_.getPath())
5454
} yield {

kinesis/src/it/scala/com/snowplowanalytics/snowplow/collectors/scalastream/it/core/DoNotTrackCookieSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class DoNotTrackCookieSpec extends Specification with Localstack with CatsEffect
5252

5353
for {
5454
statuses <- Http.statuses(requests)
55-
_ <- IO.sleep(5.second)
55+
_ <- IO.sleep(30.second)
5656
collectorOutput <- Kinesis.readOutput(streamGood, streamBad)
5757
headers = collectorOutput.good.map(_.headers.asScala)
5858
} yield {
@@ -80,7 +80,7 @@ class DoNotTrackCookieSpec extends Specification with Localstack with CatsEffect
8080

8181
for {
8282
status <- Http.status(request)
83-
_ <- IO.sleep(5.second)
83+
_ <- IO.sleep(30.second)
8484
collectorOutput <- Kinesis.readOutput(streamGood, streamBad)
8585
headers = collectorOutput.good.map(_.headers.asScala)
8686
} yield {

kinesis/src/it/scala/com/snowplowanalytics/snowplow/collectors/scalastream/it/core/HealthEndpointSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class HealthEndpointSpec extends Specification with Localstack with CatsEffect {
4040

4141
for {
4242
status <- Http.status(request)
43-
_ <- IO.sleep(5.second)
43+
_ <- IO.sleep(30.second)
4444
collectorOutput <- Kinesis.readOutput(streamGood, streamBad)
4545
} yield {
4646
status.code must beEqualTo(200)

kinesis/src/it/scala/com/snowplowanalytics/snowplow/collectors/scalastream/it/core/XForwardedForSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class XForwardedForSpec extends Specification with Localstack with CatsEffect {
4545

4646
for {
4747
_ <- Http.status(request)
48-
_ <- IO.sleep(5.second)
48+
_ <- IO.sleep(30.second)
4949
collectorOutput <- Kinesis.readOutput(streamGood, streamBad)
5050
} yield {
5151
val expected = "X-Forwarded-For: 123.123.123.123"

kinesis/src/it/scala/com/snowplowanalytics/snowplow/collectors/scalastream/it/kinesis/KinesisCollectorSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class KinesisCollectorSpec extends Specification with Localstack with CatsEffect
6363
Collector.maxBytes
6464
)
6565
_ <- log(testName, "Data sent. Waiting for collector to work")
66-
_ <- IO.sleep(5.second)
66+
_ <- IO.sleep(30.second)
6767
_ <- log(testName, "Consuming collector's output")
6868
collectorOutput <- Kinesis.readOutput(streamGood, streamBad)
6969
_ <- printBadRows(testName, collectorOutput.bad)

0 commit comments

Comments
 (0)