Skip to content

Commit c9928ca

Browse files
committed
🧹
1 parent 367561e commit c9928ca

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

clock/mock.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package clock
22

33
import (
44
"context"
5-
"errors"
65
"fmt"
76
"slices"
87
"sync"
98
"testing"
109
"time"
10+
11+
"golang.org/x/xerrors"
1112
)
1213

1314
// Mock is the testing implementation of Clock. It tracks a time that monotonically increases
@@ -571,7 +572,7 @@ func (t *Trap) Close() {
571572
close(t.done)
572573
}
573574

574-
var ErrTrapClosed = errors.New("trap closed")
575+
var ErrTrapClosed = xerrors.New("trap closed")
575576

576577
func (t *Trap) Wait(ctx context.Context) (*Call, error) {
577578
select {

coderd/database/dbgen/dbgen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ func Organization(t testing.TB, db database.Store, orig database.Organization) d
338338
Name: takeFirst(orig.Name, namesgenerator.GetRandomName(1)),
339339
DisplayName: takeFirst(orig.Name, namesgenerator.GetRandomName(1)),
340340
Description: takeFirst(orig.Description, namesgenerator.GetRandomName(1)),
341+
Icon: takeFirst(orig.Icon, ""),
341342
CreatedAt: takeFirst(orig.CreatedAt, dbtime.Now()),
342343
UpdatedAt: takeFirst(orig.UpdatedAt, dbtime.Now()),
343344
})

site/src/testHelpers/entities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const MockOrganization: TypesGen.Organization = {
1616
name: "test-organization",
1717
display_name: "Test Organization",
1818
description: "",
19+
icon: "",
1920
created_at: "",
2021
updated_at: "",
2122
is_default: true,

0 commit comments

Comments
 (0)