From 4cc459a8acd0100da4f6785090d09989721fce66 Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Wed, 24 Jun 2020 12:44:48 -0700 Subject: [PATCH] Improve test account name generation --- test/test-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-utils.js b/test/test-utils.js index 4bb333898b..0f0d58a31f 100644 --- a/test/test-utils.js +++ b/test/test-utils.js @@ -24,7 +24,7 @@ async function setUpTestConnection() { // Generate some unique string with a given prefix using the alice nonce. function generateUniqueString(prefix) { - return prefix + Date.now() + Math.round(Math.random() * 1000); + return `${prefix}-${Date.now()}-${Math.round(Math.random() * 1000000)}`; } async function createAccount(near) {