diff --git a/library/oxAcceptanceTestCase.php b/library/oxAcceptanceTestCase.php
index <HASH>..<HASH> 100644
--- a/library/oxAcceptanceTestCase.php
+++ b/library/oxAcceptanceTestCase.php
@@ -1764,7 +1764,8 @@ class oxAcceptanceTestCase extends oxMinkWrapper
     public function clearCookies()
     {
         $testConfig = new oxTestConfig();
-        $this->open($testConfig->getShopUrl() . '/_cc.php?' . time());
+        $shopUrl = preg_replace("|(https?://[^:/]*?):[0-9]+|", '$1', $testConfig->getShopUrl());
+        $this->open($shopUrl . '/_cc.php');
         if ($this->getHtmlSource() != '<head></head><body></body>') {
             $this->getMinkSession()->stop();
         }
Fix clearing cookies when varnish is enabled

_cc is unable to clear browser cookies when called via varnish url (url with port), therefore port is removed before calling this file.