Skip to content

Commit 6d8f5fe

Browse files
committed
fixup! refactor: do not expose Store in coderdtest.Options
1 parent 8f401ca commit 6d8f5fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

coderd/coderdtest/coderdtest.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ func New(t *testing.T, options *Options) *codersdk.Client {
7575
options.GoogleTokenValidator, err = idtoken.NewValidator(ctx, option.WithoutAuthentication())
7676
require.NoError(t, err)
7777
}
78+
if options.Ticker == nil {
79+
ticker := time.NewTicker(time.Second)
80+
options.Ticker = ticker.C
81+
t.Cleanup(ticker.Stop)
82+
}
7883

7984
// This can be hotswapped for a live database instance.
8085
db := databasefake.New()

0 commit comments

Comments
 (0)