Don't double-root file ref (#17039)

Fixes #17022, fixes ENG-392
This commit is contained in:
Rijk van Zanten
2023-01-06 12:03:49 -05:00
committed by GitHub
parent c429ecd57c
commit b0350d3ce0
2 changed files with 1 additions and 6 deletions

View File

@@ -165,11 +165,6 @@ describe('#file', () => {
} as unknown as Bucket;
});
test('Uses fullPath to inject root', () => {
driver['file'](sample.path.input);
expect(driver['fullPath']).toHaveBeenCalledWith(sample.path.input);
});
test('Returns file instance', () => {
const file = driver['file']('/path/to/file');
expect(file).toBe(mockFile);

View File

@@ -30,7 +30,7 @@ export class DriverGCS implements Driver {
}
private file(filepath: string) {
return this.bucket.file(this.fullPath(filepath));
return this.bucket.file(filepath);
}
async read(filepath: string, range?: Range) {