Skip to content

Commit 0a8d85c

Browse files
committed
move activity bump tests
1 parent 636b5b8 commit 0a8d85c

File tree

2 files changed

+3
-65
lines changed

2 files changed

+3
-65
lines changed

coderd/agentapi/activitybump.go

-62
This file was deleted.

coderd/agentapi/activitybump_test.go renamed to coderd/workspaceapps/activity_bump_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package agentapi_test
1+
package workspaceapps_test
22

33
import (
44
"database/sql"
@@ -8,12 +8,12 @@ import (
88
"github.com/google/uuid"
99

1010
"cdr.dev/slog/sloggers/slogtest"
11-
"github.com/coder/coder/v2/coderd/agentapi"
1211
"github.com/coder/coder/v2/coderd/database"
1312
"github.com/coder/coder/v2/coderd/database/dbgen"
1413
"github.com/coder/coder/v2/coderd/database/dbtestutil"
1514
"github.com/coder/coder/v2/coderd/database/dbtime"
1615
"github.com/coder/coder/v2/coderd/util/ptr"
16+
"github.com/coder/coder/v2/coderd/workspaceapps"
1717
"github.com/coder/coder/v2/testutil"
1818

1919
"github.com/stretchr/testify/assert"
@@ -272,7 +272,7 @@ func Test_ActivityBumpWorkspace(t *testing.T) {
272272

273273
// Bump duration is measured from the time of the bump, so we measure from here.
274274
start := dbtime.Now()
275-
agentapi.ActivityBumpWorkspace(ctx, log, db, bld.WorkspaceID, nextAutostart(start))
275+
workspaceapps.ActivityBumpWorkspace(ctx, log, db, bld.WorkspaceID, nextAutostart(start))
276276
end := dbtime.Now()
277277

278278
// Validate our state after bump

0 commit comments

Comments
 (0)