Only compare times on non-windows
There is a bug in the windows CI that causes a time difference between
the host and the container.
@@ -372,6 +372,10 @@ func checkStatus(t *testing.T, w content.Writer, expected content.Status, d dige
// t.Fatalf("unexpected \"expected digest\" %q, expected %q", st.Expected, expected.Expected)
//}
+ // FIXME: broken on windows: unexpected updated at time 2017-11-14 13:43:22.178013 -0800 PST,
+ // expected between 2017-11-14 13:43:22.1790195 -0800 PST m=+1.022137300 and
+ // 2017-11-14 13:43:22.1790195 -0800 PST m=+1.022137300
+ if runtime.GOOS != "windows" {
if st.StartedAt.After(postStart) || st.StartedAt.Before(preStart) {
t.Fatalf("unexpected started at time %s, expected between %s and %s", st.StartedAt, preStart, postStart)
}
@@ -381,6 +385,7 @@ func checkStatus(t *testing.T, w content.Writer, expected content.Status, d dige
t.Fatalf("unexpected updated at time %s, expected between %s and %s", st.UpdatedAt, preUpdate, postUpdate)
}
}
+}
func checkInfo(ctx context.Context, cs content.Store, d digest.Digest, expected content.Info, c1, c2, u1, u2 time.Time) error {
info, err := cs.Info(ctx, d)
