Skip to content

Commit f7e561c

Browse files
authored
Unset Bun integration test timeout and automatically retry 3 times (#230)
* Unset Bun integration test timeout * Automatically retry bun test * Add log statements for received events
1 parent be0fcee commit f7e561c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,7 @@ jobs:
166166
cd integration/${{ matrix.suite }}
167167
bun uninstall replicate
168168
bun install "file:../../${{ needs.build.outputs.tarball-name }}"
169-
bun test --timeout 30000
169+
retries=3
170+
for ((i=0; i<retries; i++)); do
171+
bun test && break || echo "Test failed, retrying..."
172+
done

integration/bun/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default async function main() {
1515
const output = [];
1616

1717
for await (const { event, data } of replicate.stream(model, options)) {
18+
console.log({ event, data });
1819
if (event === "output") {
1920
output.push(data);
2021
}

0 commit comments

Comments
 (0)