From 650c7175802662747f7e34653fb380ca37b11665 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 9 Apr 2020 13:38:52 +0200 Subject: [PATCH] TestHistoryContext_CreatedSince: skip on non-UTC environments Signed-off-by: Sebastiaan van Stijn --- cli/command/image/formatter_history_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/command/image/formatter_history_test.go b/cli/command/image/formatter_history_test.go index ce4c67e9d4..547f18c37a 100644 --- a/cli/command/image/formatter_history_test.go +++ b/cli/command/image/formatter_history_test.go @@ -13,6 +13,7 @@ import ( "github.com/docker/docker/pkg/stringid" "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" + "gotest.tools/v3/skip" ) type historyCase struct { @@ -52,6 +53,7 @@ func TestHistoryContext_ID(t *testing.T) { } func TestHistoryContext_CreatedSince(t *testing.T) { + skip.If(t, notUTCTimezone, "expected output requires UTC timezone") dateStr := "2009-11-10T23:00:00Z" var ctx historyContext cases := []historyCase{