Skip to content

Commit 66f2f60

Browse files
committed
make lint; make fmt
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent 5146aff commit 66f2f60

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

coderd/workspaceagentsrpc_test.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ func TestWorkspaceAgentReportStats(t *testing.T) {
4747
t.Run(tc.name, func(t *testing.T) {
4848
t.Parallel()
4949

50-
tickCh := make(chan time.Time)
51-
flushCh := make(chan int, 1)
52-
client, db := coderdtest.NewWithDatabase(t, &coderdtest.Options{
53-
WorkspaceUsageTrackerFlush: flushCh,
54-
WorkspaceUsageTrackerTick: tickCh,
55-
})
56-
user := coderdtest.CreateFirstUser(t, client)
57-
r := dbfake.WorkspaceBuild(t, db, database.WorkspaceTable{
58-
OrganizationID: user.OrganizationID,
59-
OwnerID: user.UserID,
60-
}).WithAgent(func(agent []*proto.Agent) []*proto.Agent {
61-
for _, a := range agent {
62-
a.ApiKeyScope = string(tc.apiKeyScope)
63-
}
50+
tickCh := make(chan time.Time)
51+
flushCh := make(chan int, 1)
52+
client, db := coderdtest.NewWithDatabase(t, &coderdtest.Options{
53+
WorkspaceUsageTrackerFlush: flushCh,
54+
WorkspaceUsageTrackerTick: tickCh,
55+
})
56+
user := coderdtest.CreateFirstUser(t, client)
57+
r := dbfake.WorkspaceBuild(t, db, database.WorkspaceTable{
58+
OrganizationID: user.OrganizationID,
59+
OwnerID: user.UserID,
60+
}).WithAgent(func(agent []*proto.Agent) []*proto.Agent {
61+
for _, a := range agent {
62+
a.ApiKeyScope = string(tc.apiKeyScope)
63+
}
6464

65-
return agent
66-
},
65+
return agent
66+
},
6767
).Do()
6868

6969
ac := agentsdk.New(client.URL)

0 commit comments

Comments
 (0)