Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Feb 6, 2025
1 parent 571ff68 commit 88f264b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/02-integration/18-hybrid_rpc/10-validate_deltas_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ for _, strategy in helpers.each_strategy() do
"unable to create worker mutex and sync", true, 10)
assert.logfile(name).has.line(
"'name': required field missing", true, 10)
assert.logfile(name).has.line(
"'meta': expected a record", true, 10)
assert.logfile(name).has.line(
"'config': expected a record", true, 10)

local name = nil

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ function RpcSyncV2ValidationHandler:init_worker()
{
entity = {
id = fake_uuid,
meta = "wrong", -- should be a record,
config = 100, -- should be a record,
},
type = "workspaces",
version = latest_version,
Expand Down

0 comments on commit 88f264b

Please sign in to comment.