mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -05:00
Fixing a broken unit test (#98)
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.QueryExecution
|
|||||||
{
|
{
|
||||||
public class CancelTests
|
public class CancelTests
|
||||||
{
|
{
|
||||||
//[Fact]
|
[Fact]
|
||||||
public async void CancelInProgressQueryTest()
|
public async void CancelInProgressQueryTest()
|
||||||
{
|
{
|
||||||
// Set up file for returning the query
|
// Set up file for returning the query
|
||||||
@@ -51,8 +51,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.QueryExecution
|
|||||||
VerifyQueryCancelCallCount(cancelRequest, Times.Once(), Times.Never());
|
VerifyQueryCancelCallCount(cancelRequest, Times.Once(), Times.Never());
|
||||||
Assert.Null(result.Messages);
|
Assert.Null(result.Messages);
|
||||||
|
|
||||||
// ... The query should have been disposed as well
|
// ... The query should not have been disposed
|
||||||
Assert.Empty(queryService.ActiveQueries);
|
Assert.Equal(1, queryService.ActiveQueries.Count);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
Reference in New Issue
Block a user