Skip to content

Commit

Permalink
fix: parallel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcadams committed Dec 23, 2024
1 parent 1cf65e1 commit f0c9f4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions integration/tests/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ beforeAll(async () => {
await startPostgresAndZero();
}, 60000);

test("can query users", async () => {
test.concurrent("can query users", async () => {
const zero = new Zero({
server: "http://localhost:4949",
userID: "1",
Expand All @@ -31,7 +31,7 @@ test("can query users", async () => {
preloadedUsers.cleanup();
});

test("can query messages", async () => {
test.concurrent("can query messages", async () => {
const zero = new Zero({
server: "http://localhost:4949",
userID: "1",
Expand Down
4 changes: 0 additions & 4 deletions integration/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ export const startPostgresAndZero = async () => {
},
])
.withStartupTimeout(60000)
// .withLogConsumer((logStream) => {
// logStream.on("data", (line) => console.log("Zero:", line.toString()));
// logStream.on("error", (err) => console.error("Zero log error:", err));
// })
.start();

return {
Expand Down
2 changes: 2 additions & 0 deletions integration/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export default defineConfig({
test: {
include: ["tests/**/*.test.ts"],
testTimeout: 60000,

},

plugins: [tsconfigPaths()],
});

0 comments on commit f0c9f4d

Please sign in to comment.