Skip to content

Commit

Permalink
fix(keyfile): fix wrong password generation in test
Browse files Browse the repository at this point in the history
  • Loading branch information
s1fr0 committed Oct 27, 2022
1 parent 75c6ff6 commit 112de23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/v2/test_utils_keyfile.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import
std/[json, os],
stew/byteutils,
testutils/unittests, chronos,
eth/keys
import
Expand Down Expand Up @@ -50,9 +51,9 @@ suite "KeyFile test suite":
test "Create/Save/Load multiple keyfiles in same file":

# We set different passwords for different keyfiles that will be stored in same file
let password1 = decodeHex(string.fromBytes(randomSeqByte(rng[], 20)))
let password1 = string.fromBytes(randomSeqByte(rng[], 20))
let password2 = ""
let password3 = decodeHex(string.fromBytes(randomSeqByte(rng[], 20)))
let password3 = string.fromBytes(randomSeqByte(rng[], 20))
var keyfile: KfResult[JsonNode]

let filepath = "./test.keyfile"
Expand Down

0 comments on commit 112de23

Please sign in to comment.