From c2b29a86b3148c181196e0d99cb029cf43bc8123 Mon Sep 17 00:00:00 2001 From: andig Date: Sat, 27 Jul 2024 19:25:11 +0200 Subject: [PATCH] chore: cleanup circuits api --- core/circuit/circuit_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/circuit/circuit_test.go b/core/circuit/circuit_test.go index 1fecdeab43..d7c5175c40 100644 --- a/core/circuit/circuit_test.go +++ b/core/circuit/circuit_test.go @@ -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)