George S. Baugh пре 9 година
родитељ
комит
6093b0e569
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      t/testrail-lock.t

+ 2 - 2
t/testrail-lock.t

@@ -18,10 +18,10 @@ is($code, 0, "Exit code OK asking for help");
 like($out,qr/encoding of arguments/i,"Help output OK");
 
 @args = (qw{--apiurl http://testrail.local --user test@fake.fake --password fake -j },"CRUSH ALL HUMANS", '-r', "SEND T-1000 INFILTRATION UNITS BACK IN TIME", qw{--lockname locked});
-($out,$code) = TestRail::Bin::Lock::run('browser' => $Test::LWP::UserAgent::TestRailMock::mockObject, 'args' => \@args);
+($out,(undef,$code)) = capture_merged { TestRail::Bin::Lock::run('browser' => $Test::LWP::UserAgent::TestRailMock::mockObject, 'args' => \@args) };
 is($code, 255, "Exit code bad when no case could be locked");
 chomp $out;
-like($out,qr/could not lock case/i,"Output is as expected");
+like($out,qr/failed to lock case/i,"Output is as expected");
 
 #Make sure that the binary itself processes args correctly
 $out = `$^X $0 --help`;