From 8260544cb79e20a618ed253914ad88a4457bdfb7 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sat, 6 Jan 2018 13:37:54 +0000 Subject: [PATCH] allow test to run without a db --- xt/30-backend-workers.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xt/30-backend-workers.t b/xt/30-backend-workers.t index 5876ee53..e5192a1f 100644 --- a/xt/30-backend-workers.t +++ b/xt/30-backend-workers.t @@ -7,6 +7,7 @@ use Test::File::ShareDir::Dist { 'App-Netdisco' => 'share/' }; use lib 'xt/lib'; use App::Netdisco; +use App::Netdisco::DB; # fake device row use App::Netdisco::Backend::Job; use Try::Tiny; @@ -101,7 +102,7 @@ sub do_job { my $job = App::Netdisco::Backend::Job->new({ job => 0, - device => '192.0.2.1', + device => App::Netdisco::DB->resultset('Device')->new_result({ip => '192.0.2.1'}), action => lc($pkg), });