Skip to content

Commit 862e1ab

Browse files
committed
test(node): Trim the postgres v4 URL scenario to the queries it asserts
1 parent e818de3 commit 862e1ab

1 file changed

Lines changed: 1 addition & 32 deletions

File tree

  • dev-packages/node-integration-tests/suites/tracing/postgresjs-tracing-channel

‎dev-packages/node-integration-tests/suites/tracing/postgresjs-tracing-channel/scenario-url.mjs‎

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,48 +24,17 @@ async function run() {
2424
INSERT INTO "User" ("email", "name") VALUES (${email}, 'tim');
2525
`;
2626

27-
await sql`
28-
UPDATE "User" SET "name" = 'Foo' WHERE "email" = ${email};
29-
`;
30-
3127
await sql`
3228
SELECT * FROM "User" WHERE "email" = ${email};
3329
`;
3430

35-
// Test parameterized queries
36-
await sql`
37-
SELECT * FROM "User" WHERE "email" = ${email} AND "name" = ${'Foo'};
38-
`;
39-
40-
// Test DELETE operation
4131
await sql`
4232
DELETE FROM "User" WHERE "email" = ${email};
4333
`;
44-
45-
// Test INSERT with RETURNING
46-
await sql`
47-
INSERT INTO "User" ("email", "name") VALUES (${email}, 'Test User') RETURNING *;
48-
`;
49-
50-
// Test cursor-based queries
51-
await sql`SELECT * from generate_series(1,1000) as x `.cursor(10, async rows => {
52-
await Promise.all(rows);
53-
});
54-
55-
// Test multiple rows at once
56-
await sql`
57-
SELECT * FROM "User" LIMIT 10;
58-
`;
59-
34+
} finally {
6035
await sql`
6136
DROP TABLE "User";
6237
`;
63-
64-
// This will be captured as an error as the table no longer exists
65-
await sql`
66-
SELECT * FROM "User" WHERE "email" = ${email};
67-
`;
68-
} finally {
6938
await sql.end();
7039
}
7140
},

0 commit comments

Comments
 (0)