Skip to content

Commit

Permalink
Fix it so the complaint shows what output we got.
Browse files Browse the repository at this point in the history
We've already read from the Streamer in check(), so a second read will return nothing.
Have to use output_for() to get everything.

For #242
  • Loading branch information
schwern committed Nov 30, 2011
1 parent 689d782 commit abd79a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Test/Builder/Tester/Streamer.pm
Expand Up @@ -64,7 +64,7 @@ sub complaint {
my $self = shift;
my $name = shift;
my $type = $self->name2handle->{$name};
my $got = $self->read($name);
my $got = $self->output_for($name);
my $wanted = join "\n", @{ $self->wanted->{$name} };

# are we running in colour mode?
Expand Down

0 comments on commit abd79a5

Please sign in to comment.