Skip to content

Commit a9ae1b8

Browse files
committed
Fixed runStream tests
1 parent 1a14f7f commit a9ae1b8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

packages/core/test/runStream.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ describe("RunSubscription", () => {
9999
baseCostInCents: 0,
100100
isTest: false,
101101
runTags: [],
102+
realtimeStreams: [],
102103
},
103104
];
104105

@@ -140,6 +141,7 @@ describe("RunSubscription", () => {
140141
payloadType: "application/json",
141142
output: JSON.stringify({ test: "output" }),
142143
outputType: "application/json",
144+
realtimeStreams: [],
143145
},
144146
];
145147

@@ -179,6 +181,7 @@ describe("RunSubscription", () => {
179181
baseCostInCents: 0,
180182
isTest: false,
181183
runTags: [],
184+
realtimeStreams: [],
182185
},
183186
{
184187
id: "123",
@@ -194,6 +197,7 @@ describe("RunSubscription", () => {
194197
baseCostInCents: 0,
195198
isTest: false,
196199
runTags: [],
200+
realtimeStreams: [],
197201
},
198202
];
199203

@@ -244,10 +248,9 @@ describe("RunSubscription", () => {
244248
baseCostInCents: 0,
245249
isTest: false,
246250
runTags: [],
247-
metadata: JSON.stringify({
248-
$$streams: ["openai"],
249-
}),
251+
metadata: JSON.stringify({}),
250252
metadataType: "application/json",
253+
realtimeStreams: ["openai"],
251254
},
252255
];
253256

@@ -312,10 +315,9 @@ describe("RunSubscription", () => {
312315
baseCostInCents: 0,
313316
isTest: false,
314317
runTags: [],
315-
metadata: JSON.stringify({
316-
$$streams: ["openai"],
317-
}),
318+
metadata: JSON.stringify({}),
318319
metadataType: "application/json",
320+
realtimeStreams: ["openai"],
319321
},
320322
// Second run update with same stream key
321323
{
@@ -331,10 +333,9 @@ describe("RunSubscription", () => {
331333
baseCostInCents: 0,
332334
isTest: false,
333335
runTags: [],
334-
metadata: JSON.stringify({
335-
$$streams: ["openai"],
336-
}),
336+
metadata: JSON.stringify({}),
337337
metadataType: "application/json",
338+
realtimeStreams: ["openai"],
338339
},
339340
];
340341

@@ -412,10 +413,9 @@ describe("RunSubscription", () => {
412413
baseCostInCents: 0,
413414
isTest: false,
414415
runTags: [],
415-
metadata: JSON.stringify({
416-
$$streams: ["openai", "anthropic"],
417-
}),
416+
metadata: JSON.stringify({}),
418417
metadataType: "application/json",
418+
realtimeStreams: ["openai", "anthropic"],
419419
},
420420
];
421421

0 commit comments

Comments
 (0)