Skip to content

Commit

Permalink
Log the tag event on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Haines committed Nov 3, 2015
1 parent eba968f commit e300bd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/42tags.pl
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ sub matrix_list_tags
return unless $event->{type} eq "m.tag"
and $event->{room_id} eq $room_id;

log_if_fail "Tag event", $event;

my %tags = %{ $event->{content}{tags} };
keys %tags == 1 or die "Expected exactly one tag";
defined $tags{test_tag} or die "Unexpected tag";
Expand Down

0 comments on commit e300bd2

Please sign in to comment.