From 8955100f1adbce701dbe4b76e7a8575126f526b7 Mon Sep 17 00:00:00 2001 From: Billy Lynch <1844673+wlynch@users.noreply.github.com> Date: Mon, 22 May 2023 10:48:00 -0400 Subject: [PATCH] Bump github.com/jonboulle/clockwork from 0.3.0 to 0.4.0 (#316) Fixes test to stabilize time. Signed-off-by: Billy Lynch --- go.mod | 2 +- go.sum | 2 ++ internal/attest/attest_test.go | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 2ad18a17..05c9e692 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/go-openapi/swag v0.22.3 github.com/google/go-cmp v0.5.9 github.com/in-toto/in-toto-golang v0.9.0 - github.com/jonboulle/clockwork v0.3.0 + github.com/jonboulle/clockwork v0.4.0 github.com/mattn/go-tty v0.0.5 github.com/patrickmn/go-cache v2.1.0+incompatible github.com/secure-systems-lab/go-securesystemslib v0.6.0 diff --git a/go.sum b/go.sum index 0c4a2196..6fc68a99 100644 --- a/go.sum +++ b/go.sum @@ -528,6 +528,8 @@ github.com/jmhodges/clock v0.0.0-20160418191101-880ee4c33548 h1:dYTbLf4m0a5u0KLm github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/jonboulle/clockwork v0.3.0 h1:9BSCMi8C+0qdApAp4auwX0RkLGUjs956h0EkuQymUhg= github.com/jonboulle/clockwork v0.3.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= +github.com/jonboulle/clockwork v0.4.0 h1:p4Cf1aMWXnXAUh8lVfewRBx1zaTSYKrKMF2g3ST4RZ4= +github.com/jonboulle/clockwork v0.4.0/go.mod h1:xgRqUGwRcjKCO1vbZUEtSLrqKoPSsUpK7fnezOII0kc= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= diff --git a/internal/attest/attest_test.go b/internal/attest/attest_test.go index 5b4b3f84..bb00a09d 100644 --- a/internal/attest/attest_test.go +++ b/internal/attest/attest_test.go @@ -24,6 +24,7 @@ import ( "path/filepath" "testing" "text/template" + "time" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/memfs" @@ -46,7 +47,7 @@ var ( ) func TestMain(m *testing.M) { - clock = clockwork.NewFakeClock() + clock = clockwork.NewFakeClockAt(time.Date(1984, time.April, 4, 0, 0, 0, 0, time.UTC)) os.Exit(m.Run()) }