Skip to content

Commit

Permalink
chore: cleanup circuits api
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jul 27, 2024
1 parent d91bac9 commit c2b29a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/circuit/circuit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c2b29a8

Please sign in to comment.