From cfc302103c8fbd1dbe7131a9be32c3f6fab2e5da Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 23 Sep 2008 18:02:20 +0000 Subject: [PATCH] fix bad regexp for workflowId in logged warning --- t/Workflow/Instance.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/Workflow/Instance.t b/t/Workflow/Instance.t index a0b343030..1f31f79cb 100644 --- a/t/Workflow/Instance.t +++ b/t/Workflow/Instance.t @@ -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');