mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
add common js to test with sleep func
This commit is contained in:
parent
89763b33a7
commit
05f122fec5
1 changed files with 9 additions and 0 deletions
9
eth/test/tests/common.js
Normal file
9
eth/test/tests/common.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
function log(text) {
|
||||
console.log("[JS TEST SCRIPT] " + text);
|
||||
}
|
||||
|
||||
function sleep(seconds) {
|
||||
var now = new Date().getTime();
|
||||
while(new Date().getTime() < now + seconds){}
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue