Skip to content

Commit

Permalink
Ensure recurring text streaming callback is invoked by tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Oct 17, 2024
1 parent 66a3190 commit a56bea9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/26-controllerrunning.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

BEGIN {
$ENV{OPENQA_IMAGE_STREAMING_INTERVAL} = 0.0;
$ENV{OPENQA_TEXT_STREAMING_INTERVAL} = 0.0;
}

use Test::Most;
Expand Down Expand Up @@ -83,6 +84,7 @@ subtest streaming => sub {
my $size = -s $t_file;
ok $size > (10 * 1024), "test file size is greater than 10 * 1024";
like $controller->tx->res->content->{body_buffer}, qr/data: \["A\\n"\]/, 'body buffer contains "A"';
Mojo::IOLoop->one_tick;
};

subtest image => sub {
Expand Down

0 comments on commit a56bea9

Please sign in to comment.