Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Task.Delay in C# tests #3203

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

bernardnormier
Copy link
Member

Fixes #3189.

{
await Task.Delay(10);
}
public override Task opAsyncDispatchAsync(Ice.Current current) => Task.CompletedTask;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we use Task.Yield here too, to test asynchronous completion?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, that's not what this test is testing.

@@ -1,829 +1,825 @@
// Copyright (c) ZeroC, Inc.

namespace Ice
namespace Ice.operations.AMD;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any fixes in this file other than switching to a file scoped namespace?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, removed async and await Task.Delay(0).

@bernardnormier bernardnormier merged commit e063552 into zeroc-ice:main Nov 27, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

csharp/Ice/ami failure (Ubuntu debug)
2 participants