mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -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
@@ -89,7 +89,7 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.Scripting
|
||||
[Fact]
|
||||
public async void VerifyScriptAsCreateTable()
|
||||
{
|
||||
string query = @"CREATE TABLE testTable1 (c1 int)
|
||||
string query = @"CREATE TABLE testTable1 (c1 int)
|
||||
GO
|
||||
CREATE CLUSTERED INDEX [ClusteredIndex-1] ON [dbo].[testTable1]
|
||||
(
|
||||
@@ -167,17 +167,18 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.Scripting
|
||||
await VerifyScriptAsForMultipleObjects(query, scriptingObjects, scriptCreateDrop, expectedScripts);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
// TODO: Fix flaky test. See https://github.com/Microsoft/sqltoolsservice/issues/631
|
||||
// [Fact]
|
||||
public async void VerifyScriptAsExecuteStoredProcedure()
|
||||
{
|
||||
string query = @"CREATE PROCEDURE testSp1
|
||||
@BusinessEntityID [int],
|
||||
@JobTitle [nvarchar](50),
|
||||
@HireDate [datetime],
|
||||
@RateChangeDate [datetime],
|
||||
@Rate [money],
|
||||
string query = @"CREATE PROCEDURE testSp1
|
||||
@BusinessEntityID [int],
|
||||
@JobTitle [nvarchar](50),
|
||||
@HireDate [datetime],
|
||||
@RateChangeDate [datetime],
|
||||
@Rate [money],
|
||||
@PayFrequency [tinyint]
|
||||
AS
|
||||
AS
|
||||
BEGIN Select * from sys.all_columns END";
|
||||
ScriptingOperationType scriptCreateDrop = ScriptingOperationType.Execute;
|
||||
ScriptingObject scriptingObject = new ScriptingObject
|
||||
@@ -320,7 +321,7 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.Scripting
|
||||
{
|
||||
scriptCreateOperation = $"Script{operation}";
|
||||
}
|
||||
|
||||
|
||||
scriptingParams.ScriptOptions = new ScriptOptions
|
||||
{
|
||||
ScriptCreateDrop = scriptCreateOperation,
|
||||
|
||||
Reference in New Issue
Block a user