From db48e92ace87ce99c88e315196940ed24d10f67c Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 30 Apr 2018 09:27:46 +0200 Subject: [PATCH] Fixed flanky test by using same value for check as for stored instead of dynamic. --- test/integration/monitoring_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/monitoring_controller_test.rb b/test/integration/monitoring_controller_test.rb index 9d591f635..0778d09b9 100644 --- a/test/integration/monitoring_controller_test.rb +++ b/test/integration/monitoring_controller_test.rb @@ -428,7 +428,7 @@ class MonitoringControllerTest < ActionDispatch::IntegrationTest assert(result['message']) assert(result['issues']) assert_equal(false, result['healthy']) - assert_equal("Channel: Email::Notification out ;unprocessable mails: 1;scheduler not running;Failed to run import backend 'Import::Ldap'. Cause: Some bad error;Stuck import backend 'Import::Ldap' detected. Last update: #{15.minutes.ago}", result['message']) + assert_equal("Channel: Email::Notification out ;unprocessable mails: 1;scheduler not running;Failed to run import backend 'Import::Ldap'. Cause: Some bad error;Stuck import backend 'Import::Ldap' detected. Last update: #{stuck_updated_at_timestamp}", result['message']) Setting.set('ldap_integration', false) end