Skip to content

Commit 91998da

Browse files
author
Guiners
committed
fixing failed tests
1 parent 58df642 commit 91998da

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

genai/test/embeddings-docretrieval-with-txt.test.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ const projectId = process.env.CAIP_PROJECT_ID;
2121
const sample = require('../embeddings/embeddings-docretrieval-with-txt.js');
2222
const {delay} = require('./util');
2323

24-
describe('embeddings-docretrieval-with-txt', async () => {
25-
it('should return an object containing embeddings and metadata', async () => {
24+
describe('embeddings-docretrieval-with-txt', () => {
25+
it('should return an object containing embeddings and metadata', async function () {
2626
this.retries(4);
2727
await delay(this.test);
28-
const generatedFileNames =
29-
await sample.generateEmbeddingsForRetrieval(projectId);
30-
assert.containsAllKeys(generatedFileNames, ['embeddings', 'metadata']);
28+
const result = await sample.generateEmbeddingsForRetrieval(projectId);
29+
assert.containsAllKeys(result, ['embeddings', 'metadata']);
3130
});
3231
});

genai/test/provisionedthroughput-with-txt.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const projectId = process.env.CAIP_PROJECT_ID;
2121
const sample = require('../provisioned-throughput/provisionedthroughput-with-txt.js');
2222
const {delay} = require('./util');
2323

24-
describe('provisionedthroughput-with-txt', () => {
25-
it('should return provisioned throughput result', async function () {
24+
describe('provisioned-throughput-with-txt', () => {
25+
it('should return provisioned throughput result', async () => {
2626
this.timeout(50000);
2727
this.retries(4);
2828
await delay(this.test);

genai/test/tools-google-search-with-txt.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const sample = require('../tools/tools-google-search-with-txt.js');
2222

2323
describe('tools-google-search-with-txt', () => {
2424
it('should generate answer to a question in prompt using google search', async function () {
25-
this.timeout(10000);
25+
this.timeout(100000);
2626
const output = await sample.generateGoogleSearch(projectId);
2727
assert(output.length > 0);
2828
});

0 commit comments

Comments
 (0)