Files
containerd/pkg
Sebastiaan van Stijn 9924e56f42 pkg/epoch: fix tests on macOS
These tests were failing on my macOS; could be the precision issue (like on
Windows), or just because they're "too fast".

    === RUN   TestSourceDateEpoch/WithoutSourceDateEpoch
        epoch_test.go:51:
                Error Trace:	/Users/thajeztah/go/src/github.com/containerd/containerd/pkg/epoch/epoch_test.go:51
                Error:      	Should be true
                Test:       	TestSourceDateEpoch/WithoutSourceDateEpoch
                Messages:   	now: 2023-06-23 11:47:09.93118 +0000 UTC, v: 2023-06-23 11:47:09.93118 +0000 UTC

This patch:

- updates the rightAfter utility to allow the timestamps to be "equal"
- updates the asserts to provide some details about the timestamps
- uses UTC for the value we're comparing to, to match the timestamps
  that are generated.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-06-23 17:29:55 +02:00
..
2023-02-10 10:23:59 -07:00
2023-06-23 17:29:55 +02:00
2023-05-16 10:12:50 +08:00
2022-08-04 18:18:33 -07:00
2023-05-16 10:12:50 +08:00
2023-05-16 10:12:50 +08:00
2023-01-11 13:03:59 -08:00
2022-10-12 14:41:01 +02:00
2021-11-16 11:06:40 +08:00
2023-06-10 13:49:06 +02:00
2022-07-20 22:53:42 +08:00