Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: LayoutTests/http/tests/navigation/resources/save-Ping.php

Issue 334113003: Deflake http/tests/navigation/ping-*. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/http/tests/navigation/resources/delete-ping.php ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/navigation/resources/save-Ping.php
diff --git a/LayoutTests/http/tests/navigation/resources/save-Ping.php b/LayoutTests/http/tests/navigation/resources/save-Ping.php
index d818de93f9195ec7309653df38d685487dde8212..08be62950b6b31bc36143883142179bf3816f780 100644
--- a/LayoutTests/http/tests/navigation/resources/save-Ping.php
+++ b/LayoutTests/http/tests/navigation/resources/save-Ping.php
@@ -9,7 +9,8 @@ foreach ($httpHeaders as $name => $value) {
fwrite($pingFile, "$name: $value\n");
}
fclose($pingFile);
-rename(sys_get_temp_dir() . "/ping.txt.tmp", sys_get_temp_dir() . "/ping.txt");
+$finalPingFilename = sys_get_temp_dir() . "/ping." . $_GET["test"];
+rename(sys_get_temp_dir() . "/ping.txt.tmp", $finalPingFilename);
foreach ($_COOKIE as $name => $value)
setcookie($name, "deleted", time() - 60, "/");
?>
« no previous file with comments | « LayoutTests/http/tests/navigation/resources/delete-ping.php ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698