Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit c13445e

Browse files
committed
chore(core): fix engine test rig (#1377)
1 parent c3716fa commit c13445e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/rivetkit/tests/driver-engine.test.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ runDriverTests({
1818
join(__dirname, "../fixtures/driver-test-suite/registry.ts"),
1919
async (registry) => {
2020
// Get configuration from environment or use defaults
21-
const endpoint = process.env.RIVET_ENDPOINT || "http://localhost:6420";
21+
const endpoint = process.env.RIVET_ENDPOINT || "http://127.0.0.1:6420";
2222
const namespace = `test-${crypto.randomUUID().slice(0, 8)}`;
2323
const runnerName = "test-runner";
24+
const token = "dev";
2425

2526
// Create namespace
2627
const response = await fetch(`${endpoint}/namespaces`, {
@@ -44,6 +45,10 @@ runDriverTests({
4445
// Start the actor driver
4546
const runConfig = RunnerConfigSchema.parse({
4647
driver: driverConfig,
48+
endpoint,
49+
namespace,
50+
runnerName,
51+
token,
4752
getUpgradeWebSocket: () => undefined,
4853
});
4954
const managerDriver = driverConfig.manager(registry.config, runConfig);
@@ -55,12 +60,14 @@ runDriverTests({
5560
inlineClient,
5661
);
5762

63+
await new Promise((resolve) => setTimeout(resolve, 1000));
64+
5865
return {
5966
rivetEngine: {
6067
endpoint: "http://127.0.0.1:6420",
6168
namespace: namespace,
6269
runnerName: runnerName,
63-
token: "dev",
70+
token,
6471
},
6572
driver: driverConfig,
6673
cleanup: async () => {

0 commit comments

Comments
 (0)