test/integration/logger_test.rb in filum-0.0.1 vs test/integration/logger_test.rb in filum-0.0.2

- old
+ new

@@ -13,11 +13,11 @@ test_thread = Thread.new do Filum.logger.context_id = " [12345]" Worker.process end test_thread.join - assert_logged(/\[12345\] Processing/) + assert_logged(/\[12345\]/) end def test_multiple_threads test_thread1 = Thread.new do Filum.logger.context_id = " [23456]" @@ -27,11 +27,11 @@ Filum.logger.context_id = " [34567]" Worker.process end test_thread1.join test_thread2.join - assert_logged(/\[23456\] Processing/) - assert_logged(/\[34567\] Processing/) + assert_logged(/\[23456\]/) + assert_logged(/\[34567\]/) end def assert_logged(regex) assert File.readlines(Filum.config.logfile).grep(regex).size == 1