AccountS - concreteBalance.debitUnits taking DataProvider

This commit is contained in:
DanB
2021-01-15 19:54:18 +01:00
parent 649af0afc8
commit 44eedd634b
4 changed files with 16 additions and 22 deletions

View File

@@ -44,7 +44,7 @@ func TestAccountSCoverage(t *testing.T) {
actRPC := make(chan rpcclient.ClientConnector, 1)
anz := NewAnalyzerService(cfg, server, filterSChan, shdChan, make(chan rpcclient.ClientConnector, 1), srvDep)
actS := NewAccountService(cfg, db,
chS, filterSChan, server, actRPC,
chS, filterSChan, nil, server, actRPC,
anz, srvDep)
if actS == nil {
t.Errorf("\nExpecting <nil>,\n Received <%+v>", utils.ToJSON(actS))
@@ -87,7 +87,7 @@ func TestAccountSCoverage(t *testing.T) {
if actS2.IsRunning() {
t.Errorf("Expected service to be down")
}
actS2.acts = accounts.NewAccountS(cfg, &engine.FilterS{}, &engine.DataManager{})
actS2.acts = accounts.NewAccountS(cfg, &engine.FilterS{}, nil, &engine.DataManager{})
if !actS2.IsRunning() {
t.Errorf("Expected service to be running")
}