Skip to content

Commit 422e72b

Browse files
committed
chore: Move testutil from internal to root
1 parent 917e4ae commit 422e72b

24 files changed

+22
-22
lines changed

agent/agent_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ import (
3333
"cdr.dev/slog"
3434
"cdr.dev/slog/sloggers/slogtest"
3535
"github.com/coder/coder/agent"
36-
"github.com/coder/coder/internal/testutil"
3736
"github.com/coder/coder/peer"
3837
"github.com/coder/coder/peerbroker"
3938
"github.com/coder/coder/peerbroker/proto"
4039
"github.com/coder/coder/provisionersdk"
4140
"github.com/coder/coder/pty/ptytest"
41+
"github.com/coder/coder/testutil"
4242
)
4343

4444
func TestMain(m *testing.M) {

agent/reaper/reaper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/stretchr/testify/require"
1313

1414
"github.com/coder/coder/agent/reaper"
15-
"github.com/coder/coder/internal/testutil"
15+
"github.com/coder/coder/testutil"
1616
)
1717

1818
func TestReap(t *testing.T) {

cli/cliui/prompt_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313
"github.com/stretchr/testify/require"
1414

1515
"github.com/coder/coder/cli/cliui"
16-
"github.com/coder/coder/internal/testutil"
1716
"github.com/coder/coder/pty"
1817
"github.com/coder/coder/pty/ptytest"
18+
"github.com/coder/coder/testutil"
1919
)
2020

2121
func TestPrompt(t *testing.T) {

cli/create_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import (
1313
"github.com/coder/coder/cli/clitest"
1414
"github.com/coder/coder/coderd/coderdtest"
1515
"github.com/coder/coder/codersdk"
16-
"github.com/coder/coder/internal/testutil"
1716
"github.com/coder/coder/provisioner/echo"
1817
"github.com/coder/coder/provisionersdk/proto"
1918
"github.com/coder/coder/pty/ptytest"
19+
"github.com/coder/coder/testutil"
2020
)
2121

2222
func TestCreate(t *testing.T) {

cli/list_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88

99
"github.com/coder/coder/cli/clitest"
1010
"github.com/coder/coder/coderd/coderdtest"
11-
"github.com/coder/coder/internal/testutil"
1211
"github.com/coder/coder/pty/ptytest"
12+
"github.com/coder/coder/testutil"
1313
)
1414

1515
func TestList(t *testing.T) {

cli/portforward_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"github.com/coder/coder/cli/clitest"
2222
"github.com/coder/coder/coderd/coderdtest"
2323
"github.com/coder/coder/codersdk"
24-
"github.com/coder/coder/internal/testutil"
2524
"github.com/coder/coder/provisioner/echo"
2625
"github.com/coder/coder/provisionersdk/proto"
26+
"github.com/coder/coder/testutil"
2727
)
2828

2929
func TestPortForward(t *testing.T) {

cli/resetpassword_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"github.com/coder/coder/cli/clitest"
1313
"github.com/coder/coder/coderd/database/postgres"
1414
"github.com/coder/coder/codersdk"
15-
"github.com/coder/coder/internal/testutil"
1615
"github.com/coder/coder/pty/ptytest"
16+
"github.com/coder/coder/testutil"
1717
)
1818

1919
// nolint:paralleltest

cli/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import (
3030
"github.com/coder/coder/coderd/database/postgres"
3131
"github.com/coder/coder/coderd/telemetry"
3232
"github.com/coder/coder/codersdk"
33-
"github.com/coder/coder/internal/testutil"
3433
"github.com/coder/coder/pty/ptytest"
34+
"github.com/coder/coder/testutil"
3535
)
3636

3737
// This cannot be ran in parallel because it uses a signal.

cli/ssh_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ import (
2626
"github.com/coder/coder/cli/clitest"
2727
"github.com/coder/coder/coderd/coderdtest"
2828
"github.com/coder/coder/codersdk"
29-
"github.com/coder/coder/internal/testutil"
3029
"github.com/coder/coder/provisioner/echo"
3130
"github.com/coder/coder/provisionersdk/proto"
3231
"github.com/coder/coder/pty/ptytest"
32+
"github.com/coder/coder/testutil"
3333
)
3434

3535
func setupWorkspaceForSSH(t *testing.T) (*codersdk.Client, codersdk.Workspace, string) {

coderd/coderd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ import (
3838
"github.com/coder/coder/coderd/telemetry"
3939
"github.com/coder/coder/coderd/turnconn"
4040
"github.com/coder/coder/codersdk"
41-
"github.com/coder/coder/internal/testutil"
4241
"github.com/coder/coder/provisioner/echo"
4342
"github.com/coder/coder/provisionersdk/proto"
43+
"github.com/coder/coder/testutil"
4444
)
4545

4646
func TestMain(m *testing.M) {

0 commit comments

Comments
 (0)