From 613e9c72e30ec235b584df733ac2283540fbae4d Mon Sep 17 00:00:00 2001 From: Adil Hanney Date: Sat, 18 Nov 2023 13:54:46 +0000 Subject: [PATCH] test: use non-empty list --- packages/nextcloud/test/webdav_test.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nextcloud/test/webdav_test.dart b/packages/nextcloud/test/webdav_test.dart index 2155aca1..23023475 100644 --- a/packages/nextcloud/test/webdav_test.dart +++ b/packages/nextcloud/test/webdav_test.dart @@ -628,11 +628,14 @@ void main() { // large_put: Already covered by large_get test('large_get', () async { - final response = await client.webdav.put(Uint8List(largefileSize), PathUri.parse('test.txt')); + final content = Uint8List.fromList(List.generate(largefileSize, (final i) => i % 256)); + + final response = await client.webdav.put(content, PathUri.parse('test.txt')); expect(response.statusCode, 201); final downloadedContent = await client.webdav.get(PathUri.parse('test.txt')); expect(downloadedContent, hasLength(largefileSize)); + expect(downloadedContent, equals(content)); }); });