fix dash in warning message

Change-Id: I2347fed8ad571b7e7cb17dffabe5de010c34c40f
This commit is contained in:
Joshua Hesketh 2013-12-17 15:09:40 +11:00
parent 18ac7140ef
commit 47caf5f3f3
2 changed files with 3 additions and 3 deletions

View File

@ -77,8 +77,8 @@ class TestHandleResults(testtools.TestCase):
result, msg = handle_results.check_log_for_errors(logfile, gitpath,
dataset_config)
self.assertFalse(result)
self.assertEqual(msg, ('WARNING: Migration 152 took too long, '
'WARNING: Migration 152 took too long'))
self.assertEqual(msg, ('WARNING - Migration 152 took too long, '
'WARNING - Migration 152 took too long'))
dataset_config['maximum_migration_times']['152'] = 10
result, msg = handle_results.check_log_for_errors(logfile, gitpath,

View File

@ -127,7 +127,7 @@ def check_log_for_errors(logfile, gitpath, dataset_config):
migration_start_time,
migration_end_time,
dataset_config):
warnings.append("WARNING: Migration %s took too "
warnings.append("WARNING - Migration %s took too "
"long" % migration_number_to)
elif 'Final schema version is' in line:
# Check the final version is as expected