From 1bf617580a7717349c5de3a44c34d36371e27e61 Mon Sep 17 00:00:00 2001 From: Tim Coulter Date: Fri, 29 Sep 2017 12:12:57 -0700 Subject: [PATCH] Fix test on Windows. See https://github.com/nodejs/node/issues/5561 --- test/compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/compile.js b/test/compile.js index 6268422..34c8c3c 100644 --- a/test/compile.js +++ b/test/compile.js @@ -63,7 +63,7 @@ describe("compile", function() { var file_to_update = path.resolve(path.join(config.contracts_directory, "MetaCoin.sol")); // Update the modification time to simulate an edit. - var newTime = new Date().getTime(); + var newTime = new Date(); fs.utimesSync(file_to_update, newTime, newTime); Contracts.compile(config.with({