Skip to content

Commit 580c146

Browse files
test: ensure glossaryId in sample tests is unique (#549)
Co-authored-by: Justin Beckwith <justin.beckwith@gmail.com>
1 parent a806cb4 commit 580c146

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

translate/test/v3beta1/translate_list_glossary_beta.test.js

Lines changed: 2 additions & 1 deletion
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)