Skip to content

Commit 8ee42b4

Browse files
committed
Fix test expectations because of index added to 311_STABLE
In the test we are comparing an installed 4.0dev with an upgraded 311_STABLE. And the problem is that, in MDL-75766 we backported one index to 311_STABLE that is not in the 4.0dev version. This commit just updates the expectations to include that new difference (the new index).
1 parent 6dfb4e1 commit 8ee42b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/1-compare_databases.bats

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,14 @@ setup () {
103103
assert_output --partial 'Info: Target branch: 3ba580e3f2a5f253365d33642b0bb6a94285ba2c'
104104
assert_output --partial 'Info: Comparing 3ba580e3f2a5f253365d33642b0bb6a94285ba2c and upgraded MOODLE_311_STABLE'
105105
assert_output --partial 'Problems found comparing databases!'
106-
assert_output --partial 'Number of errors: 6'
106+
assert_output --partial 'Number of errors: 7'
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'
110110
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'
112112
assert_output --regexp 'Column hidden of table grade_categories_history difference found in max_length: 2 !== 1[89]'
113+
assert_output --partial 'Index (pathnamehash) of table h5p only available in second DB'
113114
assert_output --partial 'Error: Problem comparing databases ci_installed_'
114115
assert_output --partial 'Error: Process ended with 1 errors'
115116
refute_output --partial 'Ok: Process ended without errors'

0 commit comments

Comments
 (0)