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

Closes gh-4936

test/data/mock.php

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