From 72e9b1a966ce339fa4bfb2bea5f0199d230930ee Mon Sep 17 00:00:00 2001 From: Julien Richard-Foy Date: Mon, 2 Sep 2024 07:39:29 +0200 Subject: [PATCH] Relax thresholds --- .../com/scylladb/migrator/alternator/SkippedSegmentsTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/test/scala/com/scylladb/migrator/alternator/SkippedSegmentsTest.scala b/tests/src/test/scala/com/scylladb/migrator/alternator/SkippedSegmentsTest.scala index 3fc193a..f21b706 100644 --- a/tests/src/test/scala/com/scylladb/migrator/alternator/SkippedSegmentsTest.scala +++ b/tests/src/test/scala/com/scylladb/migrator/alternator/SkippedSegmentsTest.scala @@ -34,7 +34,7 @@ class SkippedSegmentsTest extends MigratorSuiteWithDynamoDBLocal { // Verify that some items have been copied to the target database … val itemCount = targetAlternatorItemCount(tableName) - assert(itemCount > 90L && itemCount < 110L) + assert(itemCount > 75L && itemCount < 125L, s"Unexpected item count: ${itemCount}") // … but not all of them, hence the validator fails submitSparkJob(configPart2, "com.scylladb.migrator.Validator").exitValue().tap { statusCode => assertEquals(statusCode, 1)