chore: fix test

This commit is contained in:
andig 2022-01-10 15:12:06 +01:00
parent 2ff324c2d1
commit feb71d46d5

View file

@ -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(),