Skip to content

Commit ecf268c

Browse files
committed
test(rivetkit): re-enable gateway URL and direct-registry coverage
1 parent ccc38b5 commit ecf268c

11 files changed

Lines changed: 1008 additions & 758 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { warmupActor } from "../warmup";
2+
3+
export default warmupActor;

rivetkit-typescript/packages/rivetkit/fixtures/driver-test-suite/registry-static.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ import {
145145
workflowStopTeardownActor,
146146
workflowTryActor,
147147
} from "./workflow";
148+
import { warmupActor } from "./warmup";
148149

149150
let agentOsTestActor:
150151
| (Awaited<typeof import("./agent-os")>["agentOsTestActor"])
@@ -289,6 +290,7 @@ export const registry = setup({
289290
workflowReplayActor,
290291
workflowSleepActor,
291292
workflowTryActor,
293+
warmupActor,
292294
workflowStopTeardownActor,
293295
workflowErrorHookActor,
294296
workflowErrorHookEffectsActor,
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { actor } from "rivetkit";
2+
3+
export const warmupActor = actor({
4+
actions: {
5+
ping: () => true,
6+
},
7+
});

rivetkit-typescript/packages/rivetkit/src/driver-test-suite/mod.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ import { runActorStatelessTests } from "./tests/actor-stateless";
3838
import { runActorVarsTests } from "./tests/actor-vars";
3939
import { runActorWorkflowTests } from "./tests/actor-workflow";
4040
import { runManagerDriverTests } from "./tests/manager-driver";
41+
import { runRawHttpDirectRegistryTests } from "./tests/raw-http-direct-registry";
4142
import { runRawHttpTests } from "./tests/raw-http";
4243
import { runRawHttpRequestPropertiesTests } from "./tests/raw-http-request-properties";
44+
import { runRawWebSocketDirectRegistryTests } from "./tests/raw-websocket-direct-registry";
4345
import { runRawWebSocketTests } from "./tests/raw-websocket";
4446
import { runActorDbPragmaMigrationTests } from "./tests/actor-db-pragma-migration";
4547
import { runActorStateZodCoercionTests } from "./tests/actor-state-zod-coercion";
@@ -197,11 +199,9 @@ export function runDriverTests(
197199
runRawWebSocketTests(driverTestConfig);
198200
runHibernatableWebSocketProtocolTests(driverTestConfig);
199201

200-
// TODO: re-expose this once we can have actor queries on the gateway
201-
// runRawHttpDirectRegistryTests(driverTestConfig);
202+
runRawHttpDirectRegistryTests(driverTestConfig);
202203

203-
// TODO: re-expose this once we can have actor queries on the gateway
204-
// runRawWebSocketDirectRegistryTests(driverTestConfig);
204+
runRawWebSocketDirectRegistryTests(driverTestConfig);
205205

206206
runActorInspectorTests(driverTestConfig);
207207
runGatewayQueryUrlTests(driverTestConfig);

0 commit comments

Comments
 (0)