From 018c99d0e0f8a4517fd15ff0a2c6aac0e1421f06 Mon Sep 17 00:00:00 2001 From: Adrien Brault Date: Fri, 15 Mar 2019 13:56:27 +0100 Subject: [PATCH] Fix http listener --- src/HttpCall/HttpCallListener.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/HttpCall/HttpCallListener.php b/src/HttpCall/HttpCallListener.php index 4ac5f23c..4e5f77ca 100644 --- a/src/HttpCall/HttpCallListener.php +++ b/src/HttpCall/HttpCallListener.php @@ -48,6 +48,10 @@ public function afterStep(AfterStepTested $event) return true; } + if (!$this->mink->getSession()->getDriver()->isStarted()) { + return; + } + // For now to avoid modification on MinkContext // We add fallback on Mink try {