Skip to content

Commit ab25f0a

Browse files
committed
Change an assertion to get test passing both with MySQL 5 and 8
MDL-75856 has been created about to normalize that bit, but I need to get local_ci passing in order to change other stuff, hence accepting both 18 and 19 as valid outcome.
1 parent c971466 commit ab25f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/1-compare_databases.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ setup () {
107107
assert_output --partial 'Column status of table enrol_lti_app_registration difference found in has_default: true !== false'
108108
assert_output --partial 'Column status of table enrol_lti_app_registration difference found in default_value: 0 !== null'
109109
assert_output --partial 'Column hidden of table grade_categories difference found in type: tinyint !== bigint'
110-
assert_output --partial 'Column hidden of table grade_categories difference found in max_length: 2 !== 18'
110+
assert_output --regexp 'Column hidden of table grade_categories difference found in max_length: 2 !== 1[89]'
111111
assert_output --partial 'Column hidden of table grade_categories_history difference found in type: tinyint !== bigint'
112-
assert_output --partial 'Column hidden of table grade_categories_history difference found in max_length: 2 !== 18'
112+
assert_output --regexp 'Column hidden of table grade_categories_history difference found in max_length: 2 !== 1[89]'
113113
assert_output --partial 'Error: Problem comparing databases ci_installed_'
114114
assert_output --partial 'Error: Process ended with 1 errors'
115115
refute_output --partial 'Ok: Process ended without errors'

0 commit comments

Comments
 (0)