Skip to content

Commit 32e9f5e

Browse files
committed
Skip check conditionally
1 parent 041d528 commit 32e9f5e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Context/FeatureContext.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,10 @@ public function create_config( $subdir = '', $extra_php = false ) {
962962

963963
$params['skip-salts'] = true;
964964

965-
// Do not check database connection as we might be running SQLite and the check would fail.
966-
$params['skip-check'] = true;
965+
// Do not check database connection if running SQLite as the check would fail.
966+
if ( 'sqlite' === self::$db_type ) {
967+
$params['skip-check'] = true;
968+
}
967969

968970
if ( false !== $extra_php ) {
969971
$params['extra-php'] = $extra_php;

0 commit comments

Comments
 (0)