]> source.dussan.org Git - jquery.git/commitdiff
Tests: Don't remove csp.log in the cspClean action of mock.php 4954/head
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 29 Sep 2021 22:08:47 +0000 (00:08 +0200)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 29 Sep 2021 22:31:27 +0000 (00:31 +0200)
For some reason the current setup worked fine with Apache but broke for me when
I migrated to nginx.

Closes gh-4936

(cherry picked from commit 1019074f7b1df96ee9d6409ada3dc0562046f6c7)

test/data/mock.php

index ca7a98572c088f4f2a898777d4be96c2cdb3aebc..604df23f6619478711365081c7571a9b529422b3 100644 (file)
@@ -218,7 +218,6 @@ QUnit.assert.ok( true, "mock executed");';
 
        protected function cspClean( $req ) {
                file_put_contents( $this->cspFile, '' );
-               unlink( $this->cspFile );
        }
 
        protected function errorWithScript( $req ) {