Skip to content

Commit 77be059

Browse files
committed
fix golden file header spacing
1 parent 626391d commit 77be059

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/clitest/golden.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ func prepareTestData(t *testing.T) (*codersdk.Client, map[string]string) {
167167
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
168168
defer cancel()
169169

170-
db, pubsub := dbtestutil.NewDB(t)
170+
// This needs to be a fixed timezone because timezones increase the length
171+
// of timestamp strings. The increased length can pad table formatting's
172+
// and differ the table header spacings.
173+
db, pubsub := dbtestutil.NewDB(t, dbtestutil.WithTimezone("UTC"))
171174
rootClient := coderdtest.New(t, &coderdtest.Options{
172175
Database: db,
173176
Pubsub: pubsub,

0 commit comments

Comments
 (0)