diff --git a/app/src/androidTest/java/com/futo/polycentric/core/GenerateTestProfileTests.kt b/app/src/androidTest/java/com/futo/polycentric/core/GenerateTestProfileTests.kt index 40c786a4117ee635e9ddf7ba51ce973b6beaeac8..660d863ed5b678fccf8802c339b566d74394de9c 100644 --- a/app/src/androidTest/java/com/futo/polycentric/core/GenerateTestProfileTests.kt +++ b/app/src/androidTest/java/com/futo/polycentric/core/GenerateTestProfileTests.kt @@ -55,16 +55,16 @@ class GenerateTestProfileTests { //Verify resolve claim for (pair in listOf( - Pair(ClaimType.YOUTUBE.value, Pair(1, "UCR7KMD7jkSefYYWgSwNPEBA")), - Pair(ClaimType.YOUTUBE.value, Pair(0, "@koen-futo")), - Pair(ClaimType.RUMBLE.value, Pair(0, "koenfuto")), - Pair(ClaimType.RUMBLE.value, Pair(1, "c-3366838")) + Pair(ClaimType.YOUTUBE.value, Pair(1L, "UCR7KMD7jkSefYYWgSwNPEBA")), + Pair(ClaimType.YOUTUBE.value, Pair(0L, "@koen-futo")), + Pair(ClaimType.RUMBLE.value, Pair(0L, "koenfuto")), + Pair(ClaimType.RUMBLE.value, Pair(1L, "c-3366838")) )) { - val resolveClaimAnyField = ApiMethods.getResolveClaim(TestConstants.SERVER, s2p1.system.toProto(), 2, "UCR7KMD7jkSefYYWgSwNPEBA") + val resolveClaimAnyField = ApiMethods.getResolveClaim(TestConstants.SERVER, s2p1.system.toProto(), pair.first, pair.second.second) assertEquals(1, resolveClaimAnyField.matchesCount) assertEquals(s1p1.system, SignedEvent.fromProto(resolveClaimAnyField.getMatches(0).claim).event.system) - val resolveClaimSpecificField = ApiMethods.getResolveClaim(TestConstants.SERVER, s2p1.system.toProto(), 2, 1, "UCR7KMD7jkSefYYWgSwNPEBA") + val resolveClaimSpecificField = ApiMethods.getResolveClaim(TestConstants.SERVER, s2p1.system.toProto(), pair.first, pair.second.first, pair.second.second) assertEquals(1, resolveClaimSpecificField.matchesCount) assertEquals(s1p1.system, SignedEvent.fromProto(resolveClaimSpecificField.getMatches(0).claim).event.system) }