Skip to content

Commit 8b50731

Browse files
committed
rename
1 parent 43a0035 commit 8b50731

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cli/ssh_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import (
4444
"github.com/coder/coder/v2/coderd/database/dbfake"
4545
"github.com/coder/coder/v2/coderd/database/dbtestutil"
4646
"github.com/coder/coder/v2/coderd/rbac"
47-
"github.com/coder/coder/v2/coderd/workspacestats/wstest"
47+
"github.com/coder/coder/v2/coderd/workspacestats/workspacestatstest"
4848
"github.com/coder/coder/v2/codersdk"
4949
"github.com/coder/coder/v2/provisioner/echo"
5050
"github.com/coder/coder/v2/provisionersdk/proto"
@@ -1297,7 +1297,7 @@ func TestSSH(t *testing.T) {
12971297
t.Run("UpdateUsageNoExperiment", func(t *testing.T) {
12981298
t.Parallel()
12991299

1300-
batcher := &wstest.StatsBatcher{
1300+
batcher := &workspacestatstest.StatsBatcher{
13011301
LastStats: &agentproto.Stats{},
13021302
}
13031303
admin, store := coderdtest.NewWithDatabase(t, &coderdtest.Options{
@@ -1340,7 +1340,7 @@ func TestSSH(t *testing.T) {
13401340

13411341
dv := coderdtest.DeploymentValues(t)
13421342
dv.Experiments = []string{string(codersdk.ExperimentWorkspaceUsage)}
1343-
batcher := &wstest.StatsBatcher{}
1343+
batcher := &workspacestatstest.StatsBatcher{}
13441344
admin, store := coderdtest.NewWithDatabase(t, &coderdtest.Options{
13451345
DeploymentValues: dv,
13461346
StatsBatcher: batcher,

coderd/agentapi/stats_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/coder/coder/v2/coderd/prometheusmetrics"
2323
"github.com/coder/coder/v2/coderd/schedule"
2424
"github.com/coder/coder/v2/coderd/workspacestats"
25-
"github.com/coder/coder/v2/coderd/workspacestats/wstest"
25+
"github.com/coder/coder/v2/coderd/workspacestats/workspacestatstest"
2626
"github.com/coder/coder/v2/codersdk"
2727
"github.com/coder/coder/v2/testutil"
2828
)
@@ -67,7 +67,7 @@ func TestUpdateStates(t *testing.T) {
6767
panic("not implemented")
6868
},
6969
}
70-
batcher = &wstest.StatsBatcher{}
70+
batcher = &workspacestatstest.StatsBatcher{}
7171
updateAgentMetricsFnCalled = false
7272

7373
req = &agentproto.UpdateStatsRequest{
@@ -195,7 +195,7 @@ func TestUpdateStates(t *testing.T) {
195195
panic("not implemented")
196196
},
197197
}
198-
batcher = &wstest.StatsBatcher{}
198+
batcher = &workspacestatstest.StatsBatcher{}
199199

200200
req = &agentproto.UpdateStatsRequest{
201201
Stats: &agentproto.Stats{
@@ -309,7 +309,7 @@ func TestUpdateStates(t *testing.T) {
309309
panic("not implemented")
310310
},
311311
}
312-
batcher = &wstest.StatsBatcher{}
312+
batcher = &workspacestatstest.StatsBatcher{}
313313
updateAgentMetricsFnCalled = false
314314

315315
req = &agentproto.UpdateStatsRequest{

coderd/workspacestats/workspacestatstest/batcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wstest
1+
package workspacestatstest
22

33
import (
44
"sync"

0 commit comments

Comments
 (0)