From feb71d46d55d68d54e8514a4e8877dcd4a2f7da9 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 10 Jan 2022 15:12:06 +0100 Subject: [PATCH] chore: fix test --- core/savings_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/savings_test.go b/core/savings_test.go index 05db7d897..45c072f20 100644 --- a/core/savings_test.go +++ b/core/savings_test.go @@ -6,7 +6,6 @@ import ( "time" "github.com/benbjohnson/clock" - "github.com/evcc-io/evcc/util" ) func assertEnergy(t *testing.T, s *Savings, total, self, percentage float64) { @@ -45,7 +44,6 @@ func TestSavingsWithChangingEnergySources(t *testing.T) { clck := clock.NewMock() s := &Savings{ - log: util.NewLogger("foo"), clock: clck, started: clck.Now(), updated: clck.Now(), @@ -95,7 +93,6 @@ func TestSavingsWithDifferentTimespans(t *testing.T) { clck := clock.NewMock() s := &Savings{ - log: util.NewLogger("foo"), clock: clck, started: clck.Now(), updated: clck.Now(), @@ -207,7 +204,6 @@ func TestEffectiveEnergyPriceAndSavingsAmount(t *testing.T) { t.Logf("%+v", tc) s := &Savings{ - log: util.NewLogger("foo"), clock: clck, started: clck.Now(), updated: clck.Now(),