Skip to content

Commit

Permalink
test: remove lint warnings from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Nov 27, 2023
1 parent a8488ce commit 46187da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 30 deletions.
25 changes: 0 additions & 25 deletions gax/test/system-test/test.clientlibs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,6 @@ async function runSystemTest(
return await runScript(packageName, inMonorepo, 'system-test');
}

// nodejs-kms does not have system test.
async function runSamplesTest(
packageName: string,
inMonorepo: boolean
): Promise<TestResult> {
return await runScript(packageName, inMonorepo, 'samples-test');
}

describe('Run system tests for some libraries', () => {
before(async () => {
console.log('Packing google-gax...');
Expand Down Expand Up @@ -218,21 +210,4 @@ describe('Run system tests for some libraries', () => {
}
});
});

// KMS api has IAM service injected from gax. All its IAM related test are in samples-test.
// KMS is in the google-cloud-node monorepo
// Temporarily skipped to avoid circular dependency issue.
/*describe('kms', () => {
before(async () => {
await preparePackage('kms', true);
});
it('should pass samples tests', async function () {
const result = await runSamplesTest('kms', true);
if (result === TestResult.SKIP) {
this.skip();
} else if (result === TestResult.FAIL) {
throw new Error('Test failed');
}
});
});*/
});
10 changes: 5 additions & 5 deletions gax/test/test-application/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ async function testServerStreamingRetryOptions(client: SequenceServiceClient) {
);

const response = await client.createStreamingSequence(request);
await new Promise<void>((resolve, _) => {
await new Promise<void>(resolve => {
const sequence = response[0];

const attemptRequest =
Expand Down Expand Up @@ -554,7 +554,7 @@ async function testServerStreamingRetrieswithRetryOptions(
);

const response = await client.createStreamingSequence(request);
await new Promise<void>((resolve, _) => {
await new Promise<void>(resolve => {
const sequence = response[0];

const attemptRequest =
Expand Down Expand Up @@ -617,7 +617,7 @@ async function testServerStreamingRetriesWithShouldRetryFn(
);

const response = await client.createStreamingSequence(request);
await new Promise<void>((resolve, _) => {
await new Promise<void>(resolve => {
const sequence = response[0];
const attemptRequest =
new protos.google.showcase.v1beta1.AttemptStreamingSequenceRequest();
Expand Down Expand Up @@ -676,7 +676,7 @@ async function testServerStreamingRetrieswithRetryRequestOptions(
);

const response = await client.createStreamingSequence(request);
await new Promise<void>((resolve, _) => {
await new Promise<void>(resolve => {
const sequence = response[0];

const attemptRequest =
Expand Down Expand Up @@ -748,7 +748,7 @@ async function testServerStreamingRetrieswithRetryRequestOptionsResumptionStrate
'This is testing the brand new and shiny StreamingSequence server 3'
);
const response = await client.createStreamingSequence(request);
await new Promise<void>((resolve, _) => {
await new Promise<void>(resolve => {
const sequence = response[0];

const attemptRequest =
Expand Down

0 comments on commit 46187da

Please sign in to comment.