about summary refs log tree commit homepage
path: root/xt
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-25 00:29:31 +0000
committerEric Wong <e@80x24.org>2023-10-25 07:28:35 +0000
commit8ea09a53c691e2f2980bb09612f45d2a5946340a (patch)
tree94e81c5ee59aad2fddcd413b4efadea4dcdf7365 /xt
parent82abcce5e42991db9bf8afb559a88708ff667697 (diff)
downloadpublic-inbox-8ea09a53c691e2f2980bb09612f45d2a5946340a.tar.gz
xt/check-run: call DS->Reset after all tests
This ensures reused processes get a clean start and
avoids surprises as we develop more code around the
DS event loop.
Diffstat (limited to 'xt')
-rwxr-xr-xxt/check-run.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/xt/check-run.t b/xt/check-run.t
index 6eefcb7d..cda839fe 100755
--- a/xt/check-run.t
+++ b/xt/check-run.t
@@ -14,6 +14,7 @@ use v5.12;
 use IO::Handle; # ->autoflush
 use PublicInbox::TestCommon;
 use PublicInbox::Spawn;
+use PublicInbox::DS; # already loaded by Spawn via ProcessIO
 use Getopt::Long qw(:config gnu_getopt no_ignore_case auto_abbrev);
 use Errno qw(EINTR);
 use Fcntl qw(:seek);
@@ -187,6 +188,7 @@ my $start_worker = sub {
                         DIE "short read $r" if $r != UINT_SIZE;
                         my $t = unpack('I', $buf);
                         run_test($todo->[$t]);
+                        PublicInbox::DS->Reset;
                         $tb->reset;
                 }
                 kill 'USR1', $producer if !$eof; # sets $eof in $producer