fix bad regexp for workflowId in logged warning
This commit is contained in:
parent
6f789c9917
commit
cfc302103c
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ WebGUI::Test->interceptLogging;
|
|||
$instance->set({ 'parameters' => {session => 1}, });
|
||||
$otherInstance = WebGUI::Workflow::Instance->create($session, {workflowId => $wf->getId, parameters => { session => 1,} });
|
||||
is($otherInstance, undef, 'create: another singleton instance can not be created if it the same parameters as a currently existing instance');
|
||||
like($WebGUI::Test::logger_info, qr/An instance of singleton workflow \w{22} already exists/, 'create: Warning logged for trying to make another singleton');
|
||||
my $expectedId = $wf->getId;
|
||||
like($WebGUI::Test::logger_info, qr/An instance of singleton workflow $expectedId already exists/, 'create: Warning logged for trying to make another singleton');
|
||||
|
||||
$otherInstance = WebGUI::Workflow::Instance->create($session, {workflowId => $wf->getId, parameters => { session => 2,}});
|
||||
isnt ($otherInstance, undef, 'create: another singleton instance can be created if it has different parameters');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue