Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid uncovered lines in t/24-worker-engine.t #4128

Merged
merged 1 commit into from Aug 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions t/24-worker-engine.t
Expand Up @@ -34,27 +34,27 @@ use OpenQA::Utils qw(testcasedir productdir needledir locate_asset);

# define fake packages for testing asset caching
{
package Test::FakeJob;
package Test::FakeJob; # uncoverable statement count:2
use Mojo::Base -base;
has id => 42;
has worker => undef;
}
{
package Test::FakeRequest;
package Test::FakeRequest; # uncoverable statement count:2
use Mojo::Base -base;
has minion_id => 13;
}

# Fake worker, client
{
package Test::FakeWorker;
package Test::FakeWorker; # uncoverable statement count:2
use Mojo::Base -base;
has instance_number => 1;
has settings => sub { OpenQA::Worker::Settings->new(1, {}) };
has pool_directory => undef;
}
{
package Test::FakeClient;
package Test::FakeClient; # uncoverable statement count:2
use Mojo::Base -base;
has worker_id => 1;
has webui_host => 'localhost';
Expand Down