1- /*
1+ /*
22 * MinIO .NET Library for Amazon S3 Compatible Cloud Storage,
33 * (C) 2017-2021 MinIO, Inc.
44 *
@@ -50,7 +50,6 @@ public static class FunctionalTest
5050{
5151 private const int KB = 1024 ;
5252 private const int MB = 1024 * 1024 ;
53- private const int GB = 1024 * 1024 * 1024 ;
5453
5554 private const string dataFile1B = "datafile-1-b" ;
5655
@@ -117,15 +116,6 @@ public static class FunctionalTest
117116 private const string setBucketPolicySignature =
118117 "Task SetPolicyAsync(SetPolicyArgs args, CancellationToken cancellationToken = default(CancellationToken))" ;
119118
120- private const string getBucketNotificationSignature =
121- "Task<BucketNotification> GetBucketNotificationAsync(GetBucketNotificationsArgs args, CancellationToken cancellationToken = default(CancellationToken))" ;
122-
123- private const string setBucketNotificationSignature =
124- "Task SetBucketNotificationAsync(SetBucketNotificationsArgs args, CancellationToken cancellationToken = default(CancellationToken))" ;
125-
126- private const string removeAllBucketsNotificationSignature =
127- "Task RemoveAllBucketNotificationsAsync(RemoveAllBucketNotifications args, CancellationToken cancellationToken = default(CancellationToken))" ;
128-
129119 private const string setBucketEncryptionSignature =
130120 "Task SetBucketEncryptionAsync(SetBucketEncryptionArgs args, CancellationToken cancellationToken = default(CancellationToken))" ;
131121
@@ -267,7 +257,7 @@ public static string GetRandomObjectName(int length = 5)
267257 // Server side does not allow the following characters in object names
268258 // '-', '_', '.', '/', '*'
269259#if NET6_0_OR_GREATER
270- var characters = "abcd+%$#@&{}[]()" ;
260+ const string characters = "abcd+%$#@&{}[]()" ;
271261#else
272262 var characters = "abcdefgh+%$#@&" ;
273263#endif
@@ -281,7 +271,7 @@ public static string GetRandomObjectName(int length = 5)
281271 // Generate a random string
282272 public static string GetRandomName ( int length = 5 )
283273 {
284- var characters = "0123456789abcdefghijklmnopqrstuvwxyz" ;
274+ const string characters = "0123456789abcdefghijklmnopqrstuvwxyz" ;
285275 if ( length > 50 )
286276 length = 50 ;
287277
@@ -300,7 +290,7 @@ internal static void GenerateRandom500MB_File(string fileName)
300290 FileAccess . Write ,
301291 FileShare . None ,
302292 4096 ,
303- true
293+ useAsync : true
304294 ) ;
305295 var fileSize = 500L * 1024 * 1024 ;
306296 var segments = fileSize / 10000 ;
0 commit comments