Commit dc8f23b
Tests | Active Issues 1 (#3494)
* Remove AsyncTest
* Reenable DataStreamTest.RunAllTestsForSingleServer_TCP, previously blocked by #5540
Most of the issues with it were debug-only tests that checked async behavior. Async read task was expected to throw, but was simply being waited, causing the test to fail. Fixed by replacing waits with checks for exception (as was used in a handful of similar tests).
One issue was due to a debug assert failing in the TDS state object. It's really buried in timeout code, so I have no idea what it's expected to do. However, the code immediately after it was flagged by my IDE as always being true due to the debug - why are we conditionally executing code if we expect it to always be a certain value? So, I removed the debug assert.
Also added a handful of todo notes to the test class because it needs breaking up. And it's full of smelly Thread.Wait code.
* Inhibited tests that fail on Azure or Named Instances.
* Inhibited more tests that fail on Azure or Named Instances.
* Fixed test sensitive to row result ordering, and missing completeness checks.
* - Added asserts to boolean function calls.
- Updated loop to read XML results correctly.
* Fixed inaccurate test.
* GetUniqueNameForSqlServer() now includes the generated name in the exception if > 128 chars.
* Truncating generated server name if necessary, rather than failing the test.
* Fixed truncation to preserve closing ']' if present.
---------
Co-authored-by: Paul Medynski <[email protected]>1 parent 4e93076 commit dc8f23b
File tree
5 files changed
+63
-180
lines changed- src/Microsoft.Data.SqlClient
- src/Microsoft/Data/SqlClient
- tests/ManualTests
- DataCommon
- SQL
- AsyncTest
- DataStreamTest
5 files changed
+63
-180
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3151 | 3151 | | |
3152 | 3152 | | |
3153 | 3153 | | |
3154 | | - | |
| 3154 | + | |
3155 | 3155 | | |
3156 | 3156 | | |
3157 | 3157 | | |
| |||
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
599 | 602 | | |
600 | | - | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
601 | 611 | | |
| 612 | + | |
602 | 613 | | |
603 | 614 | | |
604 | 615 | | |
| |||
src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTesting.Tests.csproj
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
| |||
Lines changed: 0 additions & 106 deletions
This file was deleted.
0 commit comments