From 99968eec3f3f0da413b6acbf6d5c817a3a100321 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 20 Jan 2022 14:14:13 +0100 Subject: [PATCH] restartmanager: format code with gofumpt Formatting the code with https://github.com/mvdan/gofumpt Signed-off-by: Sebastiaan van Stijn --- restartmanager/restartmanager_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restartmanager/restartmanager_test.go b/restartmanager/restartmanager_test.go index 3dbd37c536..729c3d5207 100644 --- a/restartmanager/restartmanager_test.go +++ b/restartmanager/restartmanager_test.go @@ -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)