diff --git a/spec/01-unit/01-db/10-declarative_spec.lua b/spec/01-unit/01-db/10-declarative_spec.lua index be683a2df37b..1665e47f7721 100644 --- a/spec/01-unit/01-db/10-declarative_spec.lua +++ b/spec/01-unit/01-db/10-declarative_spec.lua @@ -53,14 +53,14 @@ keyauth_credentials: it("utilizes the schema name, workspace id, field name, and checksum of the field value", function() local key = unique_field_key("services", "123", "fieldname", "test", false) assert.is_string(key) - assert.equals("services|123|fieldname|" .. sha256_hex("test"), key) + assert.equals("services|fieldname|123|" .. sha256_hex("test"), key) end) -- since incremental sync the param `unique_across_ws` is useless -- this test case is just for compatibility it("does not omits the workspace id when 'unique_across_ws' is 'true'", function() local key = unique_field_key("services", "123", "fieldname", "test", true) - assert.equals("services|123|fieldname|" .. sha256_hex("test"), key) + assert.equals("services|fieldname|123|" .. sha256_hex("test"), key) end) end)