Skip to content

Commit

Permalink
Improve test account name generation
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Jun 24, 2020
1 parent f13356d commit 4cc459a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4cc459a

Please sign in to comment.