From 0051cd606a2f7b3064ab140ed52cf03b5ea7184c Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Thu, 23 Sep 2021 17:07:26 -0400
Subject: [PATCH] Configure the expected number of tokens in the system tests

---
 nixos/tests/run-client.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nixos/tests/run-client.py b/nixos/tests/run-client.py
index bcd01e1b..e6cde321 100755
--- a/nixos/tests/run-client.py
+++ b/nixos/tests/run-client.py
@@ -33,6 +33,10 @@ def main():
     config.add_section(u"storageclient.plugins.privatestorageio-zkapauthz-v1")
     config.set(u"storageclient.plugins.privatestorageio-zkapauthz-v1", u"redeemer", u"ristretto")
     config.set(u"storageclient.plugins.privatestorageio-zkapauthz-v1", u"ristretto-issuer-root-url", issuerURL)
+    # This has to agree with the PaymentServer configuration at the configured
+    # issuer location.  Presently PaymentServer has 50000 hard-coded as the
+    # correct value.
+    config.set(u"storageclient.plugins.privatestorageio-zkapauthz-v1", u"default-token-count", u"50000")
 
     with open("/tmp/client/tahoe.cfg", "wt") as cfg:
         config.write(cfg)
-- 
GitLab