Fix lint check

This commit is contained in:
Marc Di Luzio 2020-07-07 21:33:32 +01:00
parent 254957cde5
commit 5980de5ba7

View file

@ -326,7 +326,8 @@ func TestWorld_Daytime(t *testing.T) {
world.Rovers[a] = rover world.Rovers[a] = rover
// Try and recharge, should work // Try and recharge, should work
world.RoverRecharge(a) _, err = world.RoverRecharge(a)
assert.NoError(t, err)
assert.Equal(t, 1, world.Rovers[a].Charge) assert.Equal(t, 1, world.Rovers[a].Charge)
// Loop for half the day // Loop for half the day
@ -341,7 +342,8 @@ func TestWorld_Daytime(t *testing.T) {
world.Rovers[a] = rover world.Rovers[a] = rover
// Try and recharge, should fail // Try and recharge, should fail
world.RoverRecharge(a) _, err = world.RoverRecharge(a)
assert.NoError(t, err)
assert.Equal(t, 0, world.Rovers[a].Charge) assert.Equal(t, 0, world.Rovers[a].Charge)
// Loop for half the day // Loop for half the day