From f681e78def92ff8d27348ce78cd198ef508f6277 Mon Sep 17 00:00:00 2001 From: Simone Bizzotto Date: Mon, 21 Oct 2024 23:50:02 +0200 Subject: [PATCH] exceptions checks are stricter (do Invoke-DbaQuery) --- tests/Invoke-DbaQuery.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Invoke-DbaQuery.Tests.ps1 b/tests/Invoke-DbaQuery.Tests.ps1 index 3c94138c0b..9636656cbc 100644 --- a/tests/Invoke-DbaQuery.Tests.ps1 +++ b/tests/Invoke-DbaQuery.Tests.ps1 @@ -332,7 +332,7 @@ SELECT 2 $result = Invoke-DbaQuery -SqlInstance $TestConfig.instance2 -Database tempdb -Query $q -NoExec $result | Should -BeNullOrEmpty - { Invoke-DbaQuery -SqlInstance $TestConfig.instance2 -Database tempdb -Query "SELEC p FROM c" -NoExec -EnableException } | Should -Throw "Incorrect syntax near 'SELEC'" + { Invoke-DbaQuery -SqlInstance $TestConfig.instance2 -Database tempdb -Query "SELEC p FROM c" -NoExec -EnableException } | Should -Throw "Incorrect syntax near 'SELEC'." } It "supports dropping temp objects (#8472)" {