Browse Source

Fixed flanky test by using same value for check as for stored instead of dynamic.

Thorsten Eckel 6 years ago
parent
commit
db48e92ace
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/integration/monitoring_controller_test.rb

+ 1 - 1
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