Skip to content

Commit 9b282d4

Browse files
JustinBeckwithNimJay
authored andcommitted
fix: use unique name for sample test knowledge base (#198)
1 parent 14cf230 commit 9b282d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dialogflow/system-test/detect.v2beta1.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717

1818
const test = require(`ava`);
1919
const {runAsync} = require('@google-cloud/nodejs-repo-tools');
20+
const uuid = require('uuid/v4');
2021

2122
const cmd = 'node detect.v2beta1.js';
2223
const testQuery = `Where is my data stored?`;
23-
24-
const testKnowledgeBaseName = 'TestKnowledgeBase';
25-
24+
const testKnowledgeBaseName = `${uuid().split('-')[0]}-TestKnowledgeBase`;
2625
const testDocName = `TestDoc`;
2726
const testDocumentPath = `https://cloud.google.com/storage/docs/faq`;
2827

0 commit comments

Comments
 (0)