restartmanager: format code with gofumpt

Formatting the code with https://github.com/mvdan/gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-01-20 14:14:13 +01:00
parent f18ac2d0bc
commit 99968eec3f
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -9,7 +9,7 @@ import (
func TestRestartManagerTimeout(t *testing.T) {
rm := New(container.RestartPolicy{Name: "always"}, 0)
var duration = 1 * time.Second
duration := 1 * time.Second
should, _, err := rm.ShouldRestart(0, false, duration)
if err != nil {
t.Fatal(err)
@ -25,7 +25,7 @@ func TestRestartManagerTimeout(t *testing.T) {
func TestRestartManagerTimeoutReset(t *testing.T) {
rm := New(container.RestartPolicy{Name: "always"}, 0)
rm.timeout = 5 * time.Second
var duration = 10 * time.Second
duration := 10 * time.Second
_, _, err := rm.ShouldRestart(0, false, duration)
if err != nil {
t.Fatal(err)