Skip to content

Commit 1be8530

Browse files
author
Guiners
committed
adding mock to live-conversation-audio-with-audio
1 parent 9a21201 commit 1be8530

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

genai/test/live-conversation-audio-with-audio.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ const {describe, it} = require('mocha');
1919

2020
const projectId = process.env.CAIP_PROJECT_ID;
2121
const sample = require('../live/live-conversation-audio-with-audio');
22+
const {delay} = require('./util');
2223

2324
describe('live-conversation-audio-with-audio', () => {
2425
it('should generate content in a live session conversation from a text prompt', async function () {
2526
this.timeout(180000);
27+
this.retries(4);
28+
await delay(this.test);
2629
const output = await sample.generateLiveConversation(projectId);
2730
console.log('Generated output:', output);
2831
assert(output.length > 0);

0 commit comments

Comments
 (0)