Skip to content

Commit

Permalink
Fix integration test to get active rev reg / results should be filter…
Browse files Browse the repository at this point in the history
…ed. see todo

Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Feb 8, 2024
1 parent d16cb44 commit 642d3c1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions demo/features/steps/0586-sign-transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,15 +412,12 @@ def step_impl(context, agent_name):
)
# anoncreds returns a job_id here immediately
# check id is a rev_reg_def_id or reset list
if (
rev_regs["rev_reg_ids"][0] is not None
and rev_regs["rev_reg_ids"][0].count(":") == 0
):
if [x for x in rev_regs["rev_reg_ids"] if str(x).count(":") > 0].__len__() == 0:
rev_regs = {"rev_reg_ids": []}
i = i - 1
assert len(rev_regs["rev_reg_ids"]) >= 1

rev_reg_id = rev_regs["rev_reg_ids"][0]
rev_reg_id = [x for x in rev_regs["rev_reg_ids"] if str(x).count(":") > 0][0]

context.rev_reg_id = rev_reg_id

Expand Down

0 comments on commit 642d3c1

Please sign in to comment.