Skip to content

Commit 2b92f98

Browse files
Remove duplicate tests
1 parent 966ab5f commit 2b92f98

File tree

1 file changed

+0
-57
lines changed

1 file changed

+0
-57
lines changed

packages/modules/postgresql/src/postgresql-container.test.ts

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -112,61 +112,4 @@ describe("PostgreSqlContainer", { timeout: 180_000 }, () => {
112112

113113
await expect(() => container.start()).rejects.toThrow();
114114
});
115-
116-
it("should work with postgis", async () => {
117-
const container = await new PostgreSqlContainer("postgis/postgis:16-3.4").start();
118-
119-
const client = new Client({
120-
host: container.getHost(),
121-
port: container.getPort(),
122-
database: container.getDatabase(),
123-
user: container.getUsername(),
124-
password: container.getPassword(),
125-
});
126-
await client.connect();
127-
128-
const result = await client.query("SELECT 1");
129-
expect(result.rows[0]).toEqual({ "?column?": 1 });
130-
131-
await client.end();
132-
await container.stop();
133-
});
134-
135-
it("should work with pgvector", async () => {
136-
const container = await new PostgreSqlContainer("pgvector/pgvector:pg16").start();
137-
138-
const client = new Client({
139-
host: container.getHost(),
140-
port: container.getPort(),
141-
database: container.getDatabase(),
142-
user: container.getUsername(),
143-
password: container.getPassword(),
144-
});
145-
await client.connect();
146-
147-
const result = await client.query("SELECT 1");
148-
expect(result.rows[0]).toEqual({ "?column?": 1 });
149-
150-
await client.end();
151-
await container.stop();
152-
});
153-
154-
it("should work with timescale", async () => {
155-
const container = await new PostgreSqlContainer("timescale/timescaledb:2.1.0-pg11").start();
156-
157-
const client = new Client({
158-
host: container.getHost(),
159-
port: container.getPort(),
160-
database: container.getDatabase(),
161-
user: container.getUsername(),
162-
password: container.getPassword(),
163-
});
164-
await client.connect();
165-
166-
const result = await client.query("SELECT 1");
167-
expect(result.rows[0]).toEqual({ "?column?": 1 });
168-
169-
await client.end();
170-
await container.stop();
171-
});
172115
});

0 commit comments

Comments
 (0)