diff --git a/__tests__/Read-OleDbDataTests/Invoke-ExcelQuery.Tests.ps1 b/__tests__/Read-OleDbDataTests/Invoke-ExcelQuery.Tests.ps1 index 8c62e95..6bf6951 100644 --- a/__tests__/Read-OleDbDataTests/Invoke-ExcelQuery.Tests.ps1 +++ b/__tests__/Read-OleDbDataTests/Invoke-ExcelQuery.Tests.ps1 @@ -8,7 +8,7 @@ try { if ($IsMissingACE) { Write-Warning "MICROSOFT.ACE.OLEDB is missing! Tests will be skipped." } - $skip = $skip -or $IsMissingACE + $skip = $skip -and $IsMissingACE } catch { Write-Warning "Unable to get sources from System.Data.OleDb. Tests will be skipped." diff --git a/__tests__/Read-OleDbDataTests/Read-OleDbData.Tests.ps1 b/__tests__/Read-OleDbDataTests/Read-OleDbData.Tests.ps1 index 3697b35..6611a4d 100644 --- a/__tests__/Read-OleDbDataTests/Read-OleDbData.Tests.ps1 +++ b/__tests__/Read-OleDbDataTests/Read-OleDbData.Tests.ps1 @@ -11,7 +11,7 @@ Write-Warning "`$tfp = '$tfp'" Write-Warning "`Test-Path $tfp = '$(Test-Path $tfp)'" Write-Warning "`$cs = '$cs'" Write-Warning "`$IsMissingACE = '$IsMissingACE'" -$skip = $IsLinux -or $IsMacOS -or $IsMissingACE +$skip = ($IsLinux -or $IsMacOS) -and $IsMissingACE Describe "Read-OleDbData" -Tag "Read-OleDbData" { $PSDefaultParameterValues = @{ 'It:Skip' = $skip } Context "Basic Tests" {