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

Tests | Split MultipleResultsTest, clean up console logging #3060

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public void CustomActiveDirectoryProviderTest_AppClientId_DeviceFlowCallback()

private Task CustomDeviceFlowCallback(DeviceCodeResult result)
{
Console.WriteLine(result.Message);
return Task.FromResult(0);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public async Task PreLoginEncryptionExcludedTest()
[PlatformSpecific(TestPlatforms.Windows)]
public async Task TransientFaultTestAsync(uint errorCode)
{
using TransientFaultTDSServer server = TransientFaultTDSServer.StartTestServer(true, true, errorCode);
using TransientFaultTDSServer server = TransientFaultTDSServer.StartTestServer(true, false, errorCode);
SqlConnectionStringBuilder builder = new()
{
DataSource = "localhost," + server.Port,
Expand All @@ -85,7 +85,7 @@ public async Task TransientFaultTestAsync(uint errorCode)
[PlatformSpecific(TestPlatforms.Windows)]
public void TransientFaultTest(uint errorCode)
{
using TransientFaultTDSServer server = TransientFaultTDSServer.StartTestServer(true, true, errorCode);
using TransientFaultTDSServer server = TransientFaultTDSServer.StartTestServer(true, false, errorCode);
SqlConnectionStringBuilder builder = new()
{
DataSource = "localhost," + server.Port,
Expand All @@ -112,7 +112,7 @@ public void TransientFaultTest(uint errorCode)
[PlatformSpecific(TestPlatforms.Windows)]
public void TransientFaultDisabledTestAsync(uint errorCode)
{
using TransientFaultTDSServer server = TransientFaultTDSServer.StartTestServer(true, true, errorCode);
using TransientFaultTDSServer server = TransientFaultTDSServer.StartTestServer(true, false, errorCode);
SqlConnectionStringBuilder builder = new()
{
DataSource = "localhost," + server.Port,
Expand All @@ -134,7 +134,7 @@ public void TransientFaultDisabledTestAsync(uint errorCode)
[PlatformSpecific(TestPlatforms.Windows)]
public void TransientFaultDisabledTest(uint errorCode)
{
using TransientFaultTDSServer server = TransientFaultTDSServer.StartTestServer(true, true, errorCode);
using TransientFaultTDSServer server = TransientFaultTDSServer.StartTestServer(true, false, errorCode);
SqlConnectionStringBuilder builder = new()
{
DataSource = "localhost," + server.Port,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static TestRoutingTdsServer StartTestServer(IPEndPoint destinationEndpoin
server._endpoint = new TDSServerEndPoint(server) { ServerEndPoint = new IPEndPoint(IPAddress.Any, 0) };
server._endpoint.EndpointName = methodName;
// The server EventLog should be enabled as it logs the exceptions.
server._endpoint.EventLog = Console.Out;
server._endpoint.EventLog = enableLog ? Console.Out : null;
server._endpoint.Start();

int port = server._endpoint.ServerEndPoint.Port;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static TestTdsServer StartServerWithQueryEngine(QueryEngine engine, bool
server._endpoint = new TDSServerEndPoint(server) { ServerEndPoint = new IPEndPoint(IPAddress.Any, 0) };
server._endpoint.EndpointName = methodName;
// The server EventLog should be enabled as it logs the exceptions.
server._endpoint.EventLog = Console.Out;
server._endpoint.EventLog = enableLog ? Console.Out : null;
server._endpoint.Start();

int port = server._endpoint.ServerEndPoint.Port;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,6 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>data.xml</Link>
</Content>
<Content Include="ProviderAgnostic\MultipleResultsTest\MultipleResultsTest.bsl">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>MultipleResultsTest.bsl</Link>
</Content>
<None Include="ProviderAgnostic\MultipleResultsTest\MultipleResultsTest.bsl" />
<None Include="SQL\ParameterTest\SqlParameterTest_DebugMode.bsl" />
<None Include="SQL\ParameterTest\SqlParameterTest_DebugMode_Azure.bsl" />
<None Include="SQL\ParameterTest\SqlParameterTest_ReleaseMode.bsl" />
Expand Down

This file was deleted.

Loading
Loading