Skip to content

Commit

Permalink
chore: fix failing copy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson committed Apr 10, 2024
1 parent 9138e1e commit 78886e0
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -882,8 +882,10 @@ void main() {

group('copy() API', () {
late S3CopyResult copyResult;
const testSource = StoragePath.fromString('public/source');
const testDestination = StoragePath.fromString('public/destination');
const testSourcePath = 'public/source';
const testDestinationPath = 'public/destination';
const testSource = StoragePath.fromString(testSourcePath);
const testDestination = StoragePath.fromString(testDestinationPath);

setUpAll(() {
registerFallbackValue(
Expand Down Expand Up @@ -929,11 +931,9 @@ void main() {
final request = capturedRequest as CopyObjectRequest;

expect(request.bucket, testBucket);
expect(request.copySource, '$testBucket/${TestPathResolver.path}');
});
expect(request.copySource, '$testBucket/$testSourcePath');

test('should return correct S3CopyResult', () {
expect(copyResult.copiedItem.path, TestPathResolver.path);
expect(copyResult.copiedItem.path, testDestinationPath);
});

test(
Expand Down Expand Up @@ -1025,7 +1025,7 @@ void main() {
final request = headObjectRequest as HeadObjectRequest;

expect(request.bucket, testBucket);
expect(request.key, TestPathResolver.path);
expect(request.key, testDestinationPath);
});
});

Expand Down

0 comments on commit 78886e0

Please sign in to comment.