From 8ea09a53c691e2f2980bb09612f45d2a5946340a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 25 Oct 2023 00:29:31 +0000 Subject: 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. --- xt/check-run.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xt') 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 -- cgit v1.2.3-24-ge0c7