Skip to content

Commit

Permalink
test: fixes revoked jwt verification test
Browse files Browse the repository at this point in the history
Signed-off-by: Allain Magyar <allain.magyar@iohk.io>
  • Loading branch information
amagyar-iohk authored and goncalo-frade-iohk committed Oct 23, 2024
1 parent 464764e commit ec8704d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions E2E/e2eTests/Source/Workflows/EdgeAgentWorkflow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -342,17 +342,16 @@ class EdgeAgentWorkflow {
let presentation = try await edgeAgent.using(ability: UseWalletSdk.self, action: "retrieves presentation message")
.presentationStack.removeFirst()
do {
let result = try await edgeAgent.using(ability: UseWalletSdk.self, action: "")
let result = try await edgeAgent.using(ability: UseWalletSdk.self, action: "verify the presentation")
.sdk.verifyPresentation(message: presentation)
assertThat(result, equalTo(expected))
} catch PolluxError.cannotVerifyPresentationInputs {

print("teste")
// if (e.message.includes("credential is revoked")) {
// assert.isTrue(expected === false)
// } else {
// throw e
// }
} catch let error as PolluxError {
switch error {
case .credentialIsRevoked:
assertThat(expected == false)
default:
throw error
}
}
}
}

0 comments on commit ec8704d

Please sign in to comment.