Skip to content

Commit

Permalink
tests(core): fix flakiness due to migration error (#13049)
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlightIbuki authored May 20, 2024
1 parent d286b1c commit ae11147
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/02-integration/04-admin_api/17-foreign-entity_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ for _, strategy in helpers.each_strategy() do
[[./spec/fixtures/custom_plugins/?.lua;]]..
[[./spec/fixtures/custom_plugins/?/init.lua;" ]]

-- bootstrap db in case it's not done yet
-- ignore errors if it's already bootstrapped
helpers.kong_exec("migrations bootstrap -c " .. helpers.test_conf_path, env, true, lua_path)

local cmdline = "migrations up -c " .. helpers.test_conf_path
local _, code, _, stderr = helpers.kong_exec(cmdline, env, true, lua_path)
assert.same(0, code)
assert.equal("", stderr)
assert.same(0, code)

local _
_, db = helpers.get_db_utils(strategy, {
Expand Down

1 comment on commit ae11147

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:ae111475a0dfc2f4d0edc9d531944fdcbf2015f9
Artifacts available https://github.com/Kong/kong/actions/runs/9156447523

Please sign in to comment.