Skip to content

Commit

Permalink
remove name
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Feb 5, 2025
1 parent 670996e commit bbe3ea5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions spec/02-integration/18-hybrid_rpc/10-validate_deltas_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bbe3ea5

Please sign in to comment.