Merge pull request #2427 from thaJeztah/skip_TestHistoryContext_CreatedSince

TestHistoryContext_CreatedSince: skip on non-UTC environments
This commit is contained in:
Silvin Lubecki 2020-04-09 17:38:26 +02:00 committed by GitHub
commit 5d6281b876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{