minio / minio-dotnet

MinIO Client SDK for .NET
https://docs.min.io/docs/dotnet-client-quickstart-guide.html
Apache License 2.0
577 stars 230 forks source link

`ListenBucketNotificationAsync` Test1, Test2 and Test3` needs to be cleaned up. #1139

Open ebozduman opened 4 months ago

ebozduman commented 4 months ago

The following 2 functional tests needs to be cleaned up:

First of all, they are not async methods, so the word Async needs to be removed from the names. Second, there are unused/unnecessary code that can be cleaned up as it is done in PR #1130 for test ListenBucketNotificationAsync_Test1.

Last, we also need to remove the calls to Task.Delay(N) where the N is the wait time in milliseconds. At this point, values of N are arbitrarily chosen in our code. Instead, we can make it like a wait loop with a time-out value, where we check the status of the task or object, whatever we are waiting for in each step, and keep checking and waiting until the expected happens.