Skip to content

Refactor IGiteaMock.cs to use async/await patterns consistently #17050

@coderabbitai

Description

@coderabbitai

Several methods in src/Designer/backend/tests/Designer.Tests/Mocks/IGiteaMock.cs currently return completed tasks using Task.FromResult or block on .Result, rather than using proper async/await patterns. This can hide async faults and doesn't follow best practices for async code.

The file should be refactored to use async/await consistently throughout, ensuring exceptions and cancellation tokens propagate correctly.

Context:

Metadata

Metadata

Assignees

Labels

squad/dataIssues that belongs to the named squad.

Type

No type

Projects

Status

No status

Status

⭐ Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions