From 651f3c86c467bc90185320da3630116361b38f4b Mon Sep 17 00:00:00 2001 From: chronolaw Date: Wed, 5 Feb 2025 14:17:29 +0800 Subject: [PATCH] clean tests --- spec/02-integration/18-hybrid_rpc/10-validate_deltas_spec.lua | 2 +- .../kong/plugins/rpc-notify-new-version-test/handler.lua | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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 a92baec2aa1..9b186a761fd 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 @@ -54,7 +54,7 @@ for _, strategy in helpers.each_strategy() do assert.logfile(name).has.line( "[error]", true, 10) assert.logfile(name).has.line( - "unable to create worker mutex and sync", true, 5) + "unable to create worker mutex and sync", true, 10) assert.logfile(name).has.line( "'name': required field missing", true, 10) diff --git a/spec/fixtures/custom_plugins/kong/plugins/rpc-notify-new-version-test/handler.lua b/spec/fixtures/custom_plugins/kong/plugins/rpc-notify-new-version-test/handler.lua index 1862de167ff..7d6d7952804 100644 --- a/spec/fixtures/custom_plugins/kong/plugins/rpc-notify-new-version-test/handler.lua +++ b/spec/fixtures/custom_plugins/kong/plugins/rpc-notify-new-version-test/handler.lua @@ -23,10 +23,6 @@ function RpcSyncV2NotifyNewVersioinTestHandler:init_worker() entity = { id = fake_uuid, name = "default", - -- It must contain feild "config" and "meta", otherwise the deltas - -- validation will fail with the error "required field missing". - config = {}, - meta = {}, }, type = "workspaces", version = latest_version,