Skip to content

Commit 4a4b7ea

Browse files
committed
chore: remove system test
1 parent 585bbb5 commit 4a4b7ea

4 files changed

Lines changed: 105 additions & 307 deletions

File tree

handwritten/storage/system-test/fixtures/index-cjs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
/* eslint-disable node/no-missing-require, no-unused-vars, no-undef */
15+
// eslint-disable-next-line no-undef
1616
const {Storage} = require('@google-cloud/storage');
1717

1818
function main() {
19+
// eslint-disable-next-line no-unused-vars
1920
const storage = new Storage();
2021
}
2122

handwritten/storage/system-test/fixtures/index-esm.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
/* eslint-disable node/no-missing-import, no-unused-vars */
16-
import {Storage} from '@google-cloud/storage';
15+
// eslint-disable-next-line no-undef
16+
const {Storage} = require('@google-cloud/storage');
1717

1818
function main() {
19+
// eslint-disable-next-line no-unused-vars
1920
const storage = new Storage();
2021
}
2122

handwritten/storage/system-test/kitchen.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ describe('resumable-upload', () => {
5454
retryableErrorFn: RETRYABLE_ERR_FN_DEFAULT,
5555
};
5656

57-
const bucket = new Storage({
58-
projectId: process.env.PROJECT_ID,
59-
retryOptions: retryOptions,
60-
}).bucket(bucketName);
57+
const bucket = new Storage({retryOptions}).bucket(bucketName);
6158
let filePath: string;
6259

6360
before(async () => {
@@ -99,7 +96,7 @@ describe('resumable-upload', () => {
9996
// see: https://cloud.google.com/storage/docs/exponential-backoff:
10097
const ms = Math.pow(2, retries) * 1000 + Math.random() * 2000;
10198
console.info(`retrying "${title}" in ${ms}ms`);
102-
setTimeout(() => done(), ms);
99+
setTimeout(done(), ms);
103100
}
104101

105102
it('should work', done => {

0 commit comments

Comments
 (0)