Skip to content

Commit

Permalink
We're testing for failure, full message not important.
Browse files Browse the repository at this point in the history
  • Loading branch information
techman83 committed May 6, 2018
1 parent 1562501 commit e565b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/App/KSP_CKAN/Tools/NetKAN.t
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ TODO: {
isnt( $netkan->inflate, 0, "Return failure correctly" );

subtest 'Status Setting' => sub {
is($status->status->{'DogeCoinFlag-broken'}{last_error}, "JSON deserialization error", "'last_error' set on failure");
like($status->status->{'DogeCoinFlag-broken'}{last_error}, qr/^JSON deserialization error.+/, "'last_error' set on failure");
is($status->status->{'DogeCoinFlag-broken'}{failed}, 1, "'failed' true on failure");
is($status->status->{'DogeCoinFlag-broken'}{last_indexed}, undef, "'last_index' undef when no successful indexing has ever occured");
is($status->status->{'DogeCoinFlag'}{last_error}, undef, "'last_error' undef on success");
Expand Down

0 comments on commit e565b95

Please sign in to comment.