Skip to content

Commit b6ff434

Browse files
committed
appveyor proper test order
1 parent 44efb54 commit b6ff434

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ after_build:
4444
before_test:
4545
- SET PATH=C:\Program Files\PostgreSQL\9.6\bin\;%PATH%
4646
- psql -c "CREATE USER sa WITH SUPERUSER PASSWORD 'Password12!';" -U postgres
47-
- ps: .\tests\functional.prep.ps1
4847

4948
test_script:
50-
- ps: .\tests\ci.pester.ps1 -Type SqlServer, Postgresql, MySQL
49+
- ps: .\tests\ci.pester.ps1 -Type SqlServer, Postgresql, MySQL -Tag UnitTests, IntegrationTests, ComplianceTests
50+
- ps: .\tests\install_dependencies.ps1 -Load -Type SqlServer, Postgresql, MySQL
51+
- ps: .\tests\ci.pester.ps1 -Type SqlServer, Postgresql, MySQL -Tag FunctionalTests

tests/functional/fixtures.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ create table $logTable (
117117
'DROP DATABASE IF EXISTS {0}' -f $newDbName
118118
)
119119
$createDatabaseScript = 'CREATE DATABASE {0}' -f $newDbName
120-
$timeoutError = if ($PSVersionTable.PSVersion.Major -ge 6) { '*Exception while reading from stream*' } else { "*Unable to read data from the transport connection*" }
120+
$timeoutError = switch ($isWindows) {
121+
$false { "*Unable to read data from the transport connection*" }
122+
default { '*Exception while reading from stream*' }
123+
}
121124
$defaultSchema = 'public'
122125
$connectionString = "Host=$instance;Database=$newDbName;Username=$($credential.UserName);Password=$($credential.GetNetworkCredential().Password)"
123126
$varQuery = "SELECT '#{var1}'; SELECT '#{var2}'"

0 commit comments

Comments
 (0)