Commit 123d40c
authored
Fix no-op assertion in ContentIdentifier index-key round-trip test (apache#4979)
The storageLocation test builds identifierFromKey via
indexKeyToIdentifier(identifier.toIndexKey()) to check the
IndexKey round-trip, but asserts identifierFromKey isEqualTo
identifierFromKey, comparing the value to itself. That is
vacuously true and never verifies the toIndexKey /
indexKeyToIdentifier serialization, so a regression there would
go undetected.
Assert against the original identifier so the test actually
covers the round-trip. The corrected assertion passes for all
parameterized inputs.1 parent 3dd26bc commit 123d40c
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- persistence/nosql/persistence/metastore/src/test/java/org/apache/polaris/persistence/nosql/metastore
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments