diff --git a/lib/platform/git/storage.ts b/lib/platform/git/storage.ts
index 822f4c103f1f39a5b8e16e2868d580b122ce4c24..77d4895e88b947273ef29eb95f8ea2d589246653 100644
--- a/lib/platform/git/storage.ts
+++ b/lib/platform/git/storage.ts
@@ -483,7 +483,7 @@ function localName(branchName: string) {
 
 // istanbul ignore next
 function checkForPlatformFailure(err: Error) {
-  if (process.env.CI) {
+  if (process.env.NODE_ENV === 'test') {
     return;
   }
   const platformFailureStrings = [