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 8e7d285 commit 906d7ea
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 906d7ea

Please sign in to comment.