From 4ce3d5d60d3f5081717fe8a694cd4988c2a77bc8 Mon Sep 17 00:00:00 2001 From: Kurtis Wright Date: Fri, 1 May 2026 23:09:20 +0000 Subject: [PATCH] fix(catalog/memory): relax strict ms inequality in test_update_table While running make unit-test for verifying the RC the update_table test in /src/memory/catalog.rs was failing because it checks for the table and updated_table to have different updated timestamps down to the ms, but on a fast enough machine the test can update the updated_table in the same ms as the table causing the test to incorrectly fail. --- crates/iceberg/src/catalog/memory/catalog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/iceberg/src/catalog/memory/catalog.rs b/crates/iceberg/src/catalog/memory/catalog.rs index 8fa5c479c3..47867b2796 100644 --- a/crates/iceberg/src/catalog/memory/catalog.rs +++ b/crates/iceberg/src/catalog/memory/catalog.rs @@ -1888,7 +1888,7 @@ pub(crate) mod tests { assert_eq!(table.identifier(), updated_table.identifier()); assert_eq!(table.metadata().uuid(), updated_table.metadata().uuid()); - assert!(table.metadata().last_updated_ms() < updated_table.metadata().last_updated_ms()); + assert!(table.metadata().last_updated_ms() <= updated_table.metadata().last_updated_ms()); assert_ne!(table.metadata_location(), updated_table.metadata_location()); assert!(