Skip to content

Commit

Permalink
Small change in the test to pass
Browse files Browse the repository at this point in the history
This test was not passing because the VM called by travis CI is slow, see below the failure:
http://gcov.php.net/viewer.php?version=PHP_HEAD&func=tests&file=ext%2Ffileinfo%2Ftests%2Fcve-2014-3538-mb.phpt
User Group: PHPSP #phptestfestbrasil
http://phpsp.org.br/
  • Loading branch information
royopa authored and petk committed Feb 14, 2019
1 parent 31a0130 commit 34ca922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/fileinfo/tests/cve-2014-3538-mb.phpt
Expand Up @@ -17,7 +17,7 @@ $t = microtime(true);
var_dump(finfo_file($fi, $fd));
$t = microtime(true) - $t;
finfo_close($fi);
if ($t < 1) {
if ($t < 3) {
echo "Ok\n";
} else {
printf("Failed, time=%.2f\n", $t);
Expand Down

0 comments on commit 34ca922

Please sign in to comment.