Skip to content

Commit aecfb8e

Browse files
committed
improve cp int test assertion
1 parent f97ac5d commit aecfb8e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

rust/kafka-deduplicator/tests/checkpoint_tests.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,10 @@ async fn test_checkpoint_from_plan_with_no_previous_metadata() {
372372
.any(|k| k.ends_with("CURRENT")));
373373
assert!(remote_checkpoint_files
374374
.keys()
375-
.any(|k| k.contains("MANIFEST")));
375+
.any(|k| k.contains("MANIFEST-")));
376376
assert!(remote_checkpoint_files
377377
.keys()
378-
.any(|k| k.contains("OPTIONS")));
378+
.any(|k| k.contains("OPTIONS-")));
379379
assert!(remote_checkpoint_files.keys().any(|k| k.ends_with(".sst")));
380380
assert!(remote_checkpoint_files.keys().any(|k| k.ends_with(".log")));
381381
}
@@ -462,10 +462,10 @@ async fn test_checkpoint_from_plan_with_previous_metadata() {
462462
.any(|k| k.ends_with("CURRENT")));
463463
assert!(orig_remote_checkpoint_files
464464
.keys()
465-
.any(|k| k.contains("MANIFEST")));
465+
.any(|k| k.contains("MANIFEST-")));
466466
assert!(orig_remote_checkpoint_files
467467
.keys()
468-
.any(|k| k.contains("OPTIONS")));
468+
.any(|k| k.contains("OPTIONS-")));
469469
assert!(orig_remote_checkpoint_files
470470
.keys()
471471
.any(|k| k.ends_with(".log")));
@@ -526,11 +526,11 @@ async fn test_checkpoint_from_plan_with_previous_metadata() {
526526
.any(|k| k.ends_with("CURRENT")));
527527
assert!(next_remote_checkpoint_files
528528
.keys()
529-
.any(|k| !k.contains("MANIFEST")));
529+
.all(|k| !k.contains("MANIFEST-")));
530530
assert!(next_remote_checkpoint_files
531531
.keys()
532-
.any(|k| !k.contains("OPTIONS")));
532+
.all(|k| !k.contains("OPTIONS-")));
533533
assert!(next_remote_checkpoint_files
534534
.keys()
535-
.any(|k| !k.ends_with(".log")));
535+
.all(|k| !k.ends_with(".log")));
536536
}

0 commit comments

Comments
 (0)