diff --git a/spec/02-integration/18-hybrid_rpc/10-validate_deltas_spec.lua b/spec/02-integration/18-hybrid_rpc/10-validate_deltas_spec.lua index f2c36052d07..a92baec2aa1 100644 --- a/spec/02-integration/18-hybrid_rpc/10-validate_deltas_spec.lua +++ b/spec/02-integration/18-hybrid_rpc/10-validate_deltas_spec.lua @@ -51,14 +51,12 @@ for _, strategy in helpers.each_strategy() do local name = "servroot2/logs/error.log" -- dp logs - --assert.logfile(name).has.line( - -- "[error]", true, 10) assert.logfile(name).has.line( - "unable to create worker mutex and sync", true, 10) + "[error]", true, 10) assert.logfile(name).has.line( - "'meta': required field missing", true, 10) + "unable to create worker mutex and sync", true, 5) assert.logfile(name).has.line( - "'config': required field missing", true, 10) + "'name': required field missing", true, 10) local name = nil diff --git a/spec/fixtures/custom_plugins/kong/plugins/rpc-validation-test/handler.lua b/spec/fixtures/custom_plugins/kong/plugins/rpc-validation-test/handler.lua index 9f07dbc40b0..b450a21ee88 100644 --- a/spec/fixtures/custom_plugins/kong/plugins/rpc-validation-test/handler.lua +++ b/spec/fixtures/custom_plugins/kong/plugins/rpc-validation-test/handler.lua @@ -15,13 +15,12 @@ function RpcSyncV2ValidationHandler:init_worker() local fake_uuid = "00000000-0000-0000-0000-111111111111" -- a basic config data, - -- it has no field "config" or "meta", + -- it has no field "name", -- and will cause validation error local deltas = { { entity = { id = fake_uuid, - name = "default", }, type = "workspaces", version = latest_version,