From 68a83814d55aff77505b4df2da3f5a0e3e1eff2d Mon Sep 17 00:00:00 2001 From: Leila Lali Date: Mon, 12 Dec 2016 16:23:33 -0800 Subject: [PATCH] fixed the broken perf test (#180) * fixed the broken perf test --- .../Tests/IntellisenseTests.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/Microsoft.SqlTools.ServiceLayer.PerfTests/Tests/IntellisenseTests.cs b/test/Microsoft.SqlTools.ServiceLayer.PerfTests/Tests/IntellisenseTests.cs index cffe764c..75d36e0b 100644 --- a/test/Microsoft.SqlTools.ServiceLayer.PerfTests/Tests/IntellisenseTests.cs +++ b/test/Microsoft.SqlTools.ServiceLayer.PerfTests/Tests/IntellisenseTests.cs @@ -257,7 +257,10 @@ namespace Microsoft.SqlTools.ServiceLayer.PerfTests { string query = Scripts.SelectQuery; CompletionItem[] completions = await testHelper.RequestCompletion(ownerUri, query, 0, query.Length + 1); - return completions != null && completions.Any(x => x.Label == databaseName); + return completions != null && + (completions.Any(x => string.Compare(x.Label, databaseName, StringComparison.OrdinalIgnoreCase) == 0 || + string.Compare(x.Label, $"[{databaseName}]", StringComparison.OrdinalIgnoreCase) == 0 || + string.Compare(x.Label, $"\"{databaseName}\"", StringComparison.OrdinalIgnoreCase) == 0)); } else {