mirror of https://github.com/docker/cli.git
TestHistoryContext_CreatedSince: skip on non-UTC environments
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
2f494e1181
commit
650c717580
|
@ -13,6 +13,7 @@ import (
|
||||||
"github.com/docker/docker/pkg/stringid"
|
"github.com/docker/docker/pkg/stringid"
|
||||||
"gotest.tools/v3/assert"
|
"gotest.tools/v3/assert"
|
||||||
is "gotest.tools/v3/assert/cmp"
|
is "gotest.tools/v3/assert/cmp"
|
||||||
|
"gotest.tools/v3/skip"
|
||||||
)
|
)
|
||||||
|
|
||||||
type historyCase struct {
|
type historyCase struct {
|
||||||
|
@ -52,6 +53,7 @@ func TestHistoryContext_ID(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestHistoryContext_CreatedSince(t *testing.T) {
|
func TestHistoryContext_CreatedSince(t *testing.T) {
|
||||||
|
skip.If(t, notUTCTimezone, "expected output requires UTC timezone")
|
||||||
dateStr := "2009-11-10T23:00:00Z"
|
dateStr := "2009-11-10T23:00:00Z"
|
||||||
var ctx historyContext
|
var ctx historyContext
|
||||||
cases := []historyCase{
|
cases := []historyCase{
|
||||||
|
|
Loading…
Reference in New Issue