Permalink
Browse files

Bug 836580: Add comments about why we're using the profile directory.

  • Loading branch information...
1 parent 20ac23f commit 3d18a64915105bd331183f8ddb7e6ef3ec5ef6ad @Mossop committed Feb 1, 2013
Showing with 4 additions and 0 deletions.
  1. +2 −0 test/test-httpd.js
  2. +2 −0 test/test-request.js
View
@@ -14,6 +14,8 @@ if (options.parseable || options.verbose)
loader.sandbox("sdk/test/httpd").DEBUG = true;
exports.testBasicHTTPServer = function(test) {
+ // Use the profile directory for the temporary file as that will be deleted
+ // when tests are complete
let basePath = pathFor("ProfD");
let filePath = file.join(basePath, 'test-httpd.txt');
let content = "This is the HTTPD test file.\n";
View
@@ -15,6 +15,8 @@ if (options.parseable || options.verbose)
loader.sandbox("sdk/test/httpd").DEBUG = true;
const { startServerAsync } = httpd;
+// Use the profile directory for the temporary files as that will be deleted
+// when tests are complete
const basePath = pathFor("ProfD")
const port = 8099;

0 comments on commit 3d18a64

Please sign in to comment.