Compare commits

..

No commits in common. "73013f53bb8ace93ccf35e287d39e2adf2f956ca" and "96ec3919b2ff45e939233141fbdc10f291b3fef8" have entirely different histories.

3 changed files with 5 additions and 14 deletions

View File

@ -83,12 +83,7 @@ func TestEngine(sessionId string) (engine.Engine, func()) {
en = en.WithFirst(hl.Init) en = en.WithFirst(hl.Init)
cleanFn := func() { cleanFn := func() {
err := en.Finish() err := menuStorageService.Close()
if err != nil {
logg.Errorf(err.Error())
}
err = menuStorageService.Close()
if err != nil { if err != nil {
logg.Errorf(err.Error()) logg.Errorf(err.Error())
} }

View File

@ -659,14 +659,10 @@ func TestMyAccount_MyAddress(t *testing.T) {
t.Errorf("Test case '%s' failed during Flush: %v", group.Name, err) t.Errorf("Test case '%s' failed during Flush: %v", group.Name, err)
} }
b := w.Bytes() b := w.Bytes()
if !bytes.Equal(b, []byte(step.ExpectedContent)) {
publicKey := extractPublicKey(b) t.Fatalf("expected:\n\t%s\ngot:\n\t%s\n", step.ExpectedContent, b)
expectedContent := bytes.Replace([]byte(step.ExpectedContent), []byte("{public_key}"), []byte(publicKey), -1)
if !bytes.Equal(b, expectedContent) {
t.Fatalf("expected:\n\t%s\ngot:\n\t%s\n", expectedContent, b)
} }
} }
} }
} }

View File

@ -583,7 +583,7 @@
}, },
{ {
"input": "6", "input": "6",
"expectedContent": "Address: {public_key}\n9:Quit" "expectedContent": "Address: 0xdF8CB1D9b5BDaE418E5Bee107031cA7d933906CD\n9:Quit"
}, },
{ {
"input": "9", "input": "9",