Skip to content

Commit e105d86

Browse files
munkhuushmglJustinBeckwith
authored and
Ace Nassri
committed
test: ensure glossaryId in sample tests is unique (#549)
Co-authored-by: Justin Beckwith <[email protected]>
1 parent d740c7b commit e105d86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

translate/test/v3beta1/translate_list_glossary_beta.test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const {assert} = require('chai');
1818
const {describe, it, before, after} = require('mocha');
1919
const {TranslationServiceClient} = require('@google-cloud/translate').v3beta1;
2020
const cp = require('child_process');
21+
const uuid = require('uuid');
2122

2223
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2324

@@ -26,7 +27,7 @@ const REGION_TAG = 'translate_list_glossary_beta';
2627
describe(REGION_TAG, () => {
2728
const translationClient = new TranslationServiceClient();
2829
const location = 'us-central1';
29-
const glossaryId = 'test-glossary';
30+
const glossaryId = `test-glossary_${uuid.v4()}`;
3031

3132
before(async () => {
3233
// Add a glossary to be deleted

0 commit comments

Comments
 (0)