Skip to content

Commit cf33016

Browse files
Benjamin E. CoeAce Nassri
authored andcommitted
test: label v3 batch_translate test as flaky (#363)
1 parent 3279673 commit cf33016

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

translate/test/v3/translate_batch_translate_text_with_glossary.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ describe(REGION_TAG, () => {
7171
await operation.promise();
7272
});
7373

74-
it('should batch translate the input text with a glossary', async () => {
74+
// see: https://github.com/googleapis/nodejs-translate/issues/364
75+
it.skip('should batch translate the input text with a glossary [FLAKY]', async () => {
7576
const projectId = await translationClient.getProjectId();
7677
const inputUri = `gs://cloud-samples-data/translation/text.txt`;
7778

translate/test/v3/translate_list_glossary.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
const {assert} = require('chai');
1818
const {TranslationServiceClient} = require('@google-cloud/translate');
19+
const uuid = require('uuid');
1920
const cp = require('child_process');
2021

2122
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
@@ -25,7 +26,7 @@ const REGION_TAG = 'translate_list_glossary';
2526
describe(REGION_TAG, () => {
2627
const translationClient = new TranslationServiceClient();
2728
const location = 'us-central1';
28-
const glossaryId = 'test-glossary';
29+
const glossaryId = `test-glossary-${uuid.v4()}`;
2930

3031
before(async function() {
3132
// Add a glossary to be deleted

0 commit comments

Comments
 (0)