fix(rln-relay): flaky static group manager test (#1798)

This commit is contained in:
Aaryamann Challani 2023-06-14 20:55:33 +05:30 committed by GitHub
parent 0111b88b9b
commit 0e9ecbd6a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,9 @@ import
eth/keys, eth/keys,
discovery/dnsdisc/builder discovery/dnsdisc/builder
import
std/tempfiles
proc generateCredentials(rlnInstance: ptr RLN): IdentityCredential = proc generateCredentials(rlnInstance: ptr RLN): IdentityCredential =
let credRes = membershipKeyGen(rlnInstance) let credRes = membershipKeyGen(rlnInstance)
return credRes.get() return credRes.get()
@ -33,7 +36,7 @@ proc generateCredentials(rlnInstance: ptr RLN, n: int): seq[IdentityCredential]
suite "Static group manager": suite "Static group manager":
setup: setup:
let rlnInstanceRes = createRlnInstance() let rlnInstanceRes = createRlnInstance(tree_path = genTempPath("rln_tree", "static"))
require: require:
rlnInstanceRes.isOk() rlnInstanceRes.isOk()