| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from waterfall import waterfall_config | 5 from waterfall import waterfall_config |
| 6 from waterfall.test import wf_testcase | 6 from waterfall.test import wf_testcase |
| 7 | 7 |
| 8 | 8 |
| 9 class MastersTest(wf_testcase.WaterfallTestCase): | 9 class MastersTest(wf_testcase.WaterfallTestCase): |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 self.assertTrue( | 126 self.assertTrue( |
| 127 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2')) | 127 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2')) |
| 128 | 128 |
| 129 def testGetActionSettings(self): | 129 def testGetActionSettings(self): |
| 130 self.assertEqual( | 130 self.assertEqual( |
| 131 { | 131 { |
| 132 'cr_notification_build_threshold': 2, | 132 'cr_notification_build_threshold': 2, |
| 133 'cr_notification_latency_limit_minutes': 30, | 133 'cr_notification_latency_limit_minutes': 30, |
| 134 }, | 134 }, |
| 135 waterfall_config.GetActionSettings()) | 135 waterfall_config.GetActionSettings()) |
| 136 |
| 137 def testGetCheckFlakeSettings(self): |
| 138 self.assertEqual( |
| 139 { |
| 140 'lower_flake_threshold': 0.02, |
| 141 'upper_flake_threshold': 0.98, |
| 142 'max_flake_in_a_row': 4, |
| 143 'max_stable_in_a_row': 4 |
| 144 }, |
| 145 waterfall_config.GetCheckFlakeSettings()) |
| OLD | NEW |