Skip to content

Commit

Permalink
Test: fix race condition in TestKeyshareAttributeRenewal
Browse files Browse the repository at this point in the history
  • Loading branch information
ivard committed Oct 25, 2023
1 parent c85f904 commit 9c9d83a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/sessiontest/keyshare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ func TestKeyshareAttributeRenewal(t *testing.T) {

// Validate that keyshare attribute is invalid.
disclosureRequest := getDisclosureRequest(irma.NewAttributeTypeIdentifier("test.test.mijnirma.email"))
doSession(t, disclosureRequest, client, irmaServer, nil, nil, nil, optionUnsatisfiableRequest)
result := doSession(t, disclosureRequest, client, irmaServer, nil, nil, nil, optionUnsatisfiableRequest)
// Session remains active when being unsatisfiable, so we have to close it manually.
result.Dismisser.Dismiss()

// Do a PIN verification. This should detect the invalid keyshare attribute and renew it.
valid, _, _, err := client.KeyshareVerifyPin("12345", irma.NewSchemeManagerIdentifier("test"))
Expand Down

0 comments on commit 9c9d83a

Please sign in to comment.