Skip to content

Commit

Permalink
fix read_stdin test
Browse files Browse the repository at this point in the history
  • Loading branch information
preaction committed Mar 30, 2018
1 parent 1604d35 commit 2f74629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/util.t
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ subtest 'run_editor' => sub {
};

subtest 'read_stdin' => sub {
local *STDIN;
my $content = "Content on STDIN\n";
open my $stdin, '<', \$content or die "Could not create scalar filehandle: $!";
local *STDIN = $stdin;
open STDIN, '<', \$content or die "Could not create scalar filehandle: $!";
is read_stdin(), $content, 'STDIN content is correct';
};

Expand Down

0 comments on commit 2f74629

Please sign in to comment.