about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/thread-cycle.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/thread-cycle.t b/t/thread-cycle.t
index e89b1846..1e5dfb51 100644
--- a/t/thread-cycle.t
+++ b/t/thread-cycle.t
@@ -108,7 +108,7 @@ SKIP: {
         eval 'package EmptyInbox; sub smsg_by_mid { undef }';
         my $ctx = { ibx => bless {}, 'EmptyInbox' };
         my $rootset = PublicInbox::SearchThread::thread($smsgs, sub {
-                [ sort { $a->{mid} cmp $b->{mid} } @{$_[0]} ] }, $ctx);
+                @{$_[0]} = sort { $a->{mid} cmp $b->{mid} } @{$_[0]} }, $ctx);
         my $oldout = select $fh;
         find_cycle($rootset);
         select $oldout;
@@ -120,7 +120,7 @@ done_testing;
 sub thread_to_s {
         my ($msgs) = @_;
         my $rootset = PublicInbox::SearchThread::thread($msgs, sub {
-                [ sort { $a->{mid} cmp $b->{mid} } @{$_[0]} ] });
+                @{$_[0]} = sort { $a->{mid} cmp $b->{mid} } @{$_[0]} });
         my $st = '';
         my @q = map { (0, $_) } @$rootset;
         while (@q) {