From 2cada84ac4492c04a4940422755ae3bb03a934c4 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Tue, 16 Jun 2020 10:39:54 -0700 Subject: [PATCH] test: ensure glossaryId in sample tests is unique (#549) Co-authored-by: Justin Beckwith --- translate/test/v3beta1/translate_list_glossary_beta.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/translate/test/v3beta1/translate_list_glossary_beta.test.js b/translate/test/v3beta1/translate_list_glossary_beta.test.js index 3313e18e9d..c6a86bf7a1 100644 --- a/translate/test/v3beta1/translate_list_glossary_beta.test.js +++ b/translate/test/v3beta1/translate_list_glossary_beta.test.js @@ -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'}); @@ -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