Skip to content

Commit

Permalink
test: ensure glossaryId in sample tests is unique (#549)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Beckwith <justin.beckwith@gmail.com>
  • Loading branch information
2 people authored and Ace Nassri committed Nov 17, 2022
1 parent cb8ef5d commit 2cada84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion translate/test/v3beta1/translate_list_glossary_beta.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const {assert} = require('chai');
const {describe, it, before, after} = require('mocha');
const {TranslationServiceClient} = require('@google-cloud/translate').v3beta1;
const cp = require('child_process');
const uuid = require('uuid');

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

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

before(async () => {
// Add a glossary to be deleted
Expand Down

0 comments on commit 2cada84

Please sign in to comment.