mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-02 13:08:41 +00:00
fix tests
This commit is contained in:
parent
936bc918d3
commit
37ff34ea7d
2 changed files with 3 additions and 3 deletions
|
|
@ -407,7 +407,7 @@ func initInternalApi(c *cli.Context) (*core.UIServerAPI, core.UIClientAPI, error
|
||||||
ksLoc = c.String(keystoreFlag.Name)
|
ksLoc = c.String(keystoreFlag.Name)
|
||||||
lightKdf = c.Bool(utils.LightKDFFlag.Name)
|
lightKdf = c.Bool(utils.LightKDFFlag.Name)
|
||||||
)
|
)
|
||||||
am := core.StartClefAccountManager(ksLoc, true, lightKdf, "")
|
am := core.StartClefAccountManager(ksLoc, lightKdf, "")
|
||||||
api := core.NewSignerAPI(am, 0, ui, nil, false, pwStorage)
|
api := core.NewSignerAPI(am, 0, ui, nil, false, pwStorage)
|
||||||
internalApi := core.NewUIServerAPI(api)
|
internalApi := core.NewUIServerAPI(api)
|
||||||
return internalApi, ui, nil
|
return internalApi, ui, nil
|
||||||
|
|
|
||||||
|
|
@ -120,8 +120,8 @@ func setup(t *testing.T) (*core.SignerAPI, *headlessUi) {
|
||||||
t.Fatal(err.Error())
|
t.Fatal(err.Error())
|
||||||
}
|
}
|
||||||
ui := &headlessUi{make(chan string, 20), make(chan string, 20)}
|
ui := &headlessUi{make(chan string, 20), make(chan string, 20)}
|
||||||
am := core.StartClefAccountManager(tmpDirName(t), true, true, "")
|
am := core.StartClefAccountManager(tmpDirName(t), true, "")
|
||||||
api := core.NewSignerAPI(am, 1337, true, ui, db, true, &storage.NoStorage{})
|
api := core.NewSignerAPI(am, 1337, ui, db, true, &storage.NoStorage{})
|
||||||
return api, ui
|
return api, ui
|
||||||
}
|
}
|
||||||
func createAccount(ui *headlessUi, api *core.SignerAPI, t *testing.T) {
|
func createAccount(ui *headlessUi, api *core.SignerAPI, t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue