Skip to content

Commit

Permalink
test: label v3 batch_translate test as flaky (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored and Ace Nassri committed Nov 17, 2022
1 parent cfc0be2 commit f1f5904
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ describe(REGION_TAG, () => {
await operation.promise();
});

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

Expand Down
3 changes: 2 additions & 1 deletion translate/test/v3/translate_list_glossary.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

const {assert} = require('chai');
const {TranslationServiceClient} = require('@google-cloud/translate');
const uuid = require('uuid');
const cp = require('child_process');

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

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

0 comments on commit f1f5904

Please sign in to comment.