Skip to content

Commit

Permalink
Fix ISO test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nodh committed Jan 16, 2025
1 parent feed1b3 commit b3a0ecf
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import at.asitplus.wallet.lib.agent.IssuerAgent
import at.asitplus.wallet.lib.data.ConstantIndex
import io.kotest.assertions.withClue
import io.kotest.core.spec.style.FreeSpec
import io.kotest.matchers.collections.shouldHaveSize
import io.kotest.matchers.collections.shouldHaveAtLeastSize
import io.kotest.matchers.maps.shouldNotBeEmpty
import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.shouldBe
Expand Down Expand Up @@ -115,9 +115,10 @@ class Tag24SerializationTest : FreeSpec({
}
val serialized = issuedCredential.issuerSigned.serialize().encodeToString(Base16(true))
withClue(serialized) {
"D818".toRegex().findAll(serialized).toList().shouldHaveSize(numberOfClaims + 1)
// add 1 for MSO in IssuerAuth
"D818".toRegex().findAll(serialized).toList().shouldHaveAtLeastSize(numberOfClaims + 1)
// may be more when random salt in issuer signed item contains "D818"
}
// add 1 for MSO in IssuerAuth
}

"IssuerAuth" {
Expand Down

0 comments on commit b3a0ecf

Please sign in to comment.