From f88b528dd685d473c8611390cae8f4d3140b1449 Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Mon, 2 Dec 2019 10:10:40 -0500
Subject: [PATCH] Some more/corrected comments

---
 nixos/modules/tests/private-storage.nix | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/nixos/modules/tests/private-storage.nix b/nixos/modules/tests/private-storage.nix
index 4570d462..1fe55c13 100644
--- a/nixos/modules/tests/private-storage.nix
+++ b/nixos/modules/tests/private-storage.nix
@@ -204,7 +204,7 @@ import <nixpkgs/nixos/tests/make-test.nix> {
       ${runOnNode "client"  [ run-client introducerFURL issuerURL ]}
       $client->waitForOpenPort(3456);
 
-      # Get some ZKAPs from the issuer.
+      # Make sure the fake Stripe API server is ready for requests.
       eval {
         $api_stripe_com->waitForUnit("api.stripe.com");
         1;
@@ -213,12 +213,17 @@ import <nixpkgs/nixos/tests/make-test.nix> {
         $api_stripe_com->log($log);
         die $@;
       };
+
+      # Get some ZKAPs from the issuer.
       eval {
         ${runOnNode "client" [ get-passes "http://127.0.0.1:3456" issuerURL voucher ]}
       } or do {
         my $error = $@ || 'Unknown failure';
         my ($code, $log) = $client->execute('cat /tmp/stdout /tmp/stderr');
         $client->log($log);
+
+        # Dump the fake Stripe API server logs, too, since the error may arise
+        # from a PaymentServer/Stripe interaction.
         my ($code, $log) = $api_stripe_com->execute('journalctl -u api.stripe.com');
         $api_stripe_com->log($log);
         die $@;
-- 
GitLab