From 2721de1de7bbeae4716489d23683129753da0877 Mon Sep 17 00:00:00 2001 From: Benjamin Russell Date: Wed, 19 Oct 2016 14:52:05 -0700 Subject: [PATCH] Fixing a broken unit test (#98) --- .../QueryExecution/CancelTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Microsoft.SqlTools.ServiceLayer.Test/QueryExecution/CancelTests.cs b/test/Microsoft.SqlTools.ServiceLayer.Test/QueryExecution/CancelTests.cs index 458e0f00..3899507c 100644 --- a/test/Microsoft.SqlTools.ServiceLayer.Test/QueryExecution/CancelTests.cs +++ b/test/Microsoft.SqlTools.ServiceLayer.Test/QueryExecution/CancelTests.cs @@ -18,7 +18,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.QueryExecution { public class CancelTests { - //[Fact] + [Fact] public async void CancelInProgressQueryTest() { // Set up file for returning the query @@ -51,8 +51,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.QueryExecution VerifyQueryCancelCallCount(cancelRequest, Times.Once(), Times.Never()); Assert.Null(result.Messages); - // ... The query should have been disposed as well - Assert.Empty(queryService.ActiveQueries); + // ... The query should not have been disposed + Assert.Equal(1, queryService.ActiveQueries.Count); } [Fact]