Skip to content

Commit 899ed47

Browse files
kriszypclaude
andcommitted
fix(integration): add missing fixtures and fix duplicate hash_value
- Add create_schema/create_table for numeric-string schemas '123'/'1123' and their tables in before() — these were created by 1_environmentSetup.mjs in the legacy shared suite but missing from the self-contained port - Fix search_by_hash in 'Verify object and array records deleted': last hash_value was duplicated 7925 instead of 7927 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fe73c0f commit 899ed47

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

integrationTests/apiTests/delete.test.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ suite('Delete operations', (ctx) => {
5252
records: [{ id: 987654321 }, { id: 987654322 }, { id: 987654323 }, { id: 987654324 }],
5353
})
5454
.expect(200);
55+
56+
// Numeric-string schemas/tables used by the "Drop number" tests.
57+
// In the legacy suite these were created by 1_environmentSetup.mjs;
58+
// here we create them in before() so the suite is fully self-contained.
59+
await client.req().send({ operation: 'create_schema', schema: '123' }).expect(200);
60+
await client.req().send({ operation: 'create_table', schema: '123', table: '4', primary_key: 'id' }).expect(200);
61+
await client.req().send({ operation: 'create_schema', schema: '1123' }).expect(200);
62+
await client.req().send({ operation: 'create_table', schema: '1123', table: '1', primary_key: 'id' }).expect(200);
5563
});
5664

5765
after(async () => {
@@ -1134,7 +1142,7 @@ suite('Delete operations', (ctx) => {
11341142
operation: 'search_by_hash',
11351143
schema: 'northnwd',
11361144
table: 'employees',
1137-
hash_values: [7924, 7925, 7926, 7925],
1145+
hash_values: [7924, 7925, 7926, 7927],
11381146
get_attributes: ['employeeid', 'address'],
11391147
})
11401148
.expect((r) => assert.deepEqual(r.body, [], r.text))

0 commit comments

Comments
 (0)