mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-05 01:25:45 -05:00
Stopping sessions when handling stop requests (#627)
* Dropping profiler session on stop request * Changes to IXEventSession to simplify dropping sessions * Stop sessions instead of dropping, disable flaky tests
This commit is contained in:
committed by
GitHub
parent
b41c19bd25
commit
35b19320d4
@@ -52,7 +52,8 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.Agent
|
||||
/// <summary>
|
||||
/// Verify the default "create agent alert" request handler with valid parameters
|
||||
/// </summary>
|
||||
[Fact]
|
||||
// TODO: Fix flaky test. See https://github.com/Microsoft/sqltoolsservice/issues/630
|
||||
// [Fact]
|
||||
public async Task TestHandleCreateAgentAlertsRequest()
|
||||
{
|
||||
using (SelfCleaningTempFile queryTempFile = new SelfCleaningTempFile())
|
||||
@@ -84,7 +85,7 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.Agent
|
||||
// {
|
||||
// OwnerUri = connectionResult.ConnectionInfo.OwnerUri,
|
||||
// Alert = alert
|
||||
// }, deleteContext.Object);
|
||||
// }, deleteContext.Object);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
@@ -123,13 +124,13 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.Agent
|
||||
OwnerUri = connectionResult.ConnectionInfo.OwnerUri,
|
||||
Alert = alert
|
||||
}, createContext.Object);
|
||||
|
||||
|
||||
await service.HandleUpdateAgentAlertRequest(new UpdateAgentAlertParams()
|
||||
{
|
||||
OwnerUri = connectionResult.ConnectionInfo.OwnerUri,
|
||||
Alert = alert
|
||||
}, updateContext.Object);
|
||||
|
||||
|
||||
await service.HandleDeleteAgentAlertRequest(new DeleteAgentAlertParams()
|
||||
{
|
||||
OwnerUri = connectionResult.ConnectionInfo.OwnerUri,
|
||||
|
||||
Reference in New Issue
Block a user