Skip to content

Commit

Permalink
Bump github.com/jonboulle/clockwork from 0.3.0 to 0.4.0 (#316)
Browse files Browse the repository at this point in the history
Fixes test to stabilize time.

Signed-off-by: Billy Lynch <billy@chainguard.dev>
  • Loading branch information
wlynch committed May 22, 2023
1 parent 5dd6092 commit 8955100
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Expand Up @@ -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=
Expand Down
3 changes: 2 additions & 1 deletion internal/attest/attest_test.go
Expand Up @@ -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"
Expand All @@ -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())
}

Expand Down

0 comments on commit 8955100

Please sign in to comment.