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 Oct 29, 2019
1 parent 0efebf4 commit 42b79e0
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 42b79e0

Please sign in to comment.