Skip to content

Commit

Permalink
test: fix error message tests after Tarantool
Browse files Browse the repository at this point in the history
We stop to add 'Illegal parameters, ' in
tarantool/tarantool#10058.
  • Loading branch information
nshy authored and DifferentialOrange committed May 28, 2024
1 parent 381cc8e commit d99c375
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/check_schema_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1698,22 +1698,22 @@ end

local sequence_invalid_option_cases = {
start = {
err = "sequences[\"seq\"]: Illegal parameters, options parameter 'start' should be of type number",
err = "options parameter 'start' should be of type number",
},
min = {
err = "sequences[\"seq\"]: Illegal parameters, options parameter 'min' should be of type number",
err = "options parameter 'min' should be of type number",
},
max = {
err = "sequences[\"seq\"]: Illegal parameters, options parameter 'max' should be of type number",
err = "options parameter 'max' should be of type number",
},
cache = {
err = "sequences[\"seq\"]: Illegal parameters, options parameter 'cache' should be of type number",
err = "options parameter 'cache' should be of type number",
},
step = {
err = "sequences[\"seq\"]: Illegal parameters, options parameter 'step' should be of type number",
err = "options parameter 'step' should be of type number",
},
cycle = {
err = "sequences[\"seq\"]: Illegal parameters, options parameter 'cycle' should be of type boolean",
err = "options parameter 'cycle' should be of type boolean",
},
}

Expand All @@ -1731,6 +1731,7 @@ for option_key, case in pairs(sequence_invalid_option_cases) do
}

local _, err = ddl.set_schema(schema)
t.assert_str_matches(err, '^sequences%["seq"%]: ')
t.assert_str_contains(err, case.err)
end
end
Expand Down

0 comments on commit d99c375

Please sign in to comment.