visibility test: add a small description of current test
This commit is contained in:
parent
bb43a2e8e3
commit
6e25ffc8e9
1 changed files with 7 additions and 4 deletions
|
@ -98,10 +98,13 @@ sub test_visibility {
|
|||
. $status->{timestamp}->epoch % 337 . q{-}
|
||||
. $status->{sched_departure}->epoch;
|
||||
|
||||
is( $status->{visibility}, $opt{visibility} );
|
||||
is( $status->{visibility_str}, $opt{visibility_str} );
|
||||
is( $status->{effective_visibility}, $opt{effective_visibility} );
|
||||
is( $status->{effective_visibility_str}, $opt{effective_visibility_str} );
|
||||
my $desc = "vis=$opt{effective_visibility_str} (from $opt{visibility_str})";
|
||||
|
||||
is( $status->{visibility}, $opt{visibility}, $desc );
|
||||
is( $status->{visibility_str}, $opt{visibility_str}, $desc );
|
||||
is( $status->{effective_visibility}, $opt{effective_visibility}, $desc );
|
||||
is( $status->{effective_visibility_str},
|
||||
$opt{effective_visibility_str}, $desc );
|
||||
|
||||
if ( $opt{public} ) {
|
||||
$t->get_ok('/status/test1')->status_is(200)->content_like(qr{DPN 667});
|
||||
|
|
Loading…
Reference in a new issue