Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0a8d85c

Browse files
committed
move activity bump tests
1 parent636b5b8 commit0a8d85c

File tree

2 files changed

+3
-65
lines changed

2 files changed

+3
-65
lines changed

‎coderd/agentapi/activitybump.go

Lines changed: 0 additions & 62 deletions
This file was deleted.

‎coderd/agentapi/activitybump_test.gorenamed to‎coderd/workspaceapps/activity_bump_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
packageagentapi_test
1+
packageworkspaceapps_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)

[8]ページ先頭

©2009-2025 Movatter.jp