Skip to content

[BUG] Test failure: Azure.Mcp.Tools.Sql.UnitTests.Database.DatabaseDeleteCommandTests.ExecuteAsync_ValidatesInputCorrectly #1082

@fanyang-mono

Description

@fanyang-mono

Describe the bug

Link to the build: https://dev.azure.com/azure-sdk/public/_build/results?buildId=5539134&view=logs&j=dc60c7e7-299e-5b09-033c-25aa80e4127e&t=a38f592e-61d7-507f-c7b1-a8fa3a04ca5c

Error message:

  Failed Azure.Mcp.Tools.Sql.UnitTests.Database.DatabaseDeleteCommandTests.ExecuteAsync_ValidatesInputCorrectly(args: "--resource-group rg --server server1 --database db"···, shouldSucceed: False) [3 ms]
  Error Message:
   Assert.Equal() Failure: Values differ
Expected: BadRequest
Actual:   OK
  Stack Trace:
     at Azure.Mcp.Tools.Sql.UnitTests.Database.DatabaseDeleteCommandTests.ExecuteAsync_ValidatesInputCorrectly(String args, Boolean shouldSucceed) in /Users/runner/work/1/s/tools/Azure.Mcp.Tools.Sql/tests/Azure.Mcp.Tools.Sql.UnitTests/Database/DatabaseDeleteCommandTests.cs:line 86

Expected behavior

Test should pass on CI

Actual behavior

Test failed

Reproduction Steps

I am not sure. It seems to be flaky.

Environment

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Not Started

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions