diff --git a/engine/src/androidTest/java/com/google/android/fhir/db/impl/DatabaseImplTest.kt b/engine/src/androidTest/java/com/google/android/fhir/db/impl/DatabaseImplTest.kt index a2d8838c9d..fd603a2bb7 100644 --- a/engine/src/androidTest/java/com/google/android/fhir/db/impl/DatabaseImplTest.kt +++ b/engine/src/androidTest/java/com/google/android/fhir/db/impl/DatabaseImplTest.kt @@ -5276,7 +5276,7 @@ class DatabaseImplTest { first.size == second.size && first.asSequence().zip(second.asSequence()).all { (x, y) -> equalsShallow(x, y) } - private fun equalsShallowUnordered(first: List, second: List) = + private fun resourceTypeAndIdEqualUnordered(first: List, second: List) = first.size == second.size && first.map { it.resourceType to it.logicalId }.toSet() == second.map { it.resourceType to it.logicalId }.toSet() @@ -5292,7 +5292,7 @@ class DatabaseImplTest { if (inOrder) { equalsShallow(x.value, y.value) } else { - equalsShallowUnordered(x.value, y.value) + resourceTypeAndIdEqualUnordered(x.value, y.value) } } } else { @@ -5311,7 +5311,7 @@ class DatabaseImplTest { if (inOrder) { equalsShallow(x.value, y.value) } else { - equalsShallowUnordered(x.value, y.value) + resourceTypeAndIdEqualUnordered(x.value, y.value) } } } else {