chore: cleanup circuits api
Some checks failed
Some checks failed
This commit is contained in:
parent
d91bac9a86
commit
c2b29a86b3
1 changed files with 4 additions and 4 deletions
|
|
@ -73,8 +73,8 @@ func TestCircuitPower(t *testing.T) {
|
|||
c1, cm1 := circ(t, ctrl, 1)
|
||||
c2, cm2 := circ(t, ctrl, 1)
|
||||
|
||||
c1.SetParent(pc)
|
||||
c2.SetParent(pc)
|
||||
c1.setParent(pc)
|
||||
c2.setParent(pc)
|
||||
|
||||
// update meters
|
||||
pm.EXPECT().CurrentPower().Return(tc.p, nil)
|
||||
|
|
@ -112,8 +112,8 @@ func TestCircuitCurrents(t *testing.T) {
|
|||
c1, cm1 := circ(t, ctrl, 1)
|
||||
c2, cm2 := circ(t, ctrl, 1)
|
||||
|
||||
c1.SetParent(pc)
|
||||
c2.SetParent(pc)
|
||||
c1.setParent(pc)
|
||||
c2.setParent(pc)
|
||||
|
||||
// update meters
|
||||
pm.MockMeter.EXPECT().CurrentPower().AnyTimes().Return(0.0, nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue