File tree 24 files changed +22
-22
lines changed
24 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import (
33
33
"cdr.dev/slog"
34
34
"cdr.dev/slog/sloggers/slogtest"
35
35
"github.com/coder/coder/agent"
36
- "github.com/coder/coder/internal/ testutil"
36
+ "github.com/coder/coder/testutil"
37
37
"github.com/coder/coder/peer"
38
38
"github.com/coder/coder/peerbroker"
39
39
"github.com/coder/coder/peerbroker/proto"
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
"github.com/stretchr/testify/require"
13
13
14
14
"github.com/coder/coder/agent/reaper"
15
- "github.com/coder/coder/internal/ testutil"
15
+ "github.com/coder/coder/testutil"
16
16
)
17
17
18
18
func TestReap (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
13
13
"github.com/stretchr/testify/require"
14
14
15
15
"github.com/coder/coder/cli/cliui"
16
- "github.com/coder/coder/internal/ testutil"
16
+ "github.com/coder/coder/testutil"
17
17
"github.com/coder/coder/pty"
18
18
"github.com/coder/coder/pty/ptytest"
19
19
)
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
13
13
"github.com/coder/coder/cli/clitest"
14
14
"github.com/coder/coder/coderd/coderdtest"
15
15
"github.com/coder/coder/codersdk"
16
- "github.com/coder/coder/internal/ testutil"
16
+ "github.com/coder/coder/testutil"
17
17
"github.com/coder/coder/provisioner/echo"
18
18
"github.com/coder/coder/provisionersdk/proto"
19
19
"github.com/coder/coder/pty/ptytest"
Original file line number Diff line number Diff line change 8
8
9
9
"github.com/coder/coder/cli/clitest"
10
10
"github.com/coder/coder/coderd/coderdtest"
11
- "github.com/coder/coder/internal/ testutil"
11
+ "github.com/coder/coder/testutil"
12
12
"github.com/coder/coder/pty/ptytest"
13
13
)
14
14
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
21
21
"github.com/coder/coder/cli/clitest"
22
22
"github.com/coder/coder/coderd/coderdtest"
23
23
"github.com/coder/coder/codersdk"
24
- "github.com/coder/coder/internal/ testutil"
24
+ "github.com/coder/coder/testutil"
25
25
"github.com/coder/coder/provisioner/echo"
26
26
"github.com/coder/coder/provisionersdk/proto"
27
27
)
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
"github.com/coder/coder/cli/clitest"
13
13
"github.com/coder/coder/coderd/database/postgres"
14
14
"github.com/coder/coder/codersdk"
15
- "github.com/coder/coder/internal/ testutil"
15
+ "github.com/coder/coder/testutil"
16
16
"github.com/coder/coder/pty/ptytest"
17
17
)
18
18
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import (
30
30
"github.com/coder/coder/coderd/database/postgres"
31
31
"github.com/coder/coder/coderd/telemetry"
32
32
"github.com/coder/coder/codersdk"
33
- "github.com/coder/coder/internal/ testutil"
33
+ "github.com/coder/coder/testutil"
34
34
"github.com/coder/coder/pty/ptytest"
35
35
)
36
36
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import (
26
26
"github.com/coder/coder/cli/clitest"
27
27
"github.com/coder/coder/coderd/coderdtest"
28
28
"github.com/coder/coder/codersdk"
29
- "github.com/coder/coder/internal/ testutil"
29
+ "github.com/coder/coder/testutil"
30
30
"github.com/coder/coder/provisioner/echo"
31
31
"github.com/coder/coder/provisionersdk/proto"
32
32
"github.com/coder/coder/pty/ptytest"
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ import (
38
38
"github.com/coder/coder/coderd/telemetry"
39
39
"github.com/coder/coder/coderd/turnconn"
40
40
"github.com/coder/coder/codersdk"
41
- "github.com/coder/coder/internal/ testutil"
41
+ "github.com/coder/coder/testutil"
42
42
"github.com/coder/coder/provisioner/echo"
43
43
"github.com/coder/coder/provisionersdk/proto"
44
44
)
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ import (
52
52
"github.com/coder/coder/coderd/util/ptr"
53
53
"github.com/coder/coder/codersdk"
54
54
"github.com/coder/coder/cryptorand"
55
- "github.com/coder/coder/internal/ testutil"
55
+ "github.com/coder/coder/testutil"
56
56
"github.com/coder/coder/provisioner/echo"
57
57
"github.com/coder/coder/provisionerd"
58
58
"github.com/coder/coder/provisionersdk"
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
25
25
26
26
"cdr.dev/slog/sloggers/slogtest"
27
27
"github.com/coder/coder/coderd/devtunnel"
28
- "github.com/coder/coder/internal/ testutil"
28
+ "github.com/coder/coder/testutil"
29
29
)
30
30
31
31
const (
Original file line number Diff line number Diff line change 9
9
"github.com/stretchr/testify/require"
10
10
11
11
"github.com/coder/coder/coderd/httpmw"
12
- "github.com/coder/coder/internal/ testutil"
12
+ "github.com/coder/coder/testutil"
13
13
)
14
14
15
15
func TestRateLimit (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
12
12
"github.com/coder/coder/coderd/coderdtest"
13
13
"github.com/coder/coder/codersdk"
14
- "github.com/coder/coder/internal/ testutil"
14
+ "github.com/coder/coder/testutil"
15
15
"github.com/coder/coder/provisionersdk"
16
16
)
17
17
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
21
21
"github.com/coder/coder/coderd/database"
22
22
"github.com/coder/coder/coderd/database/databasefake"
23
23
"github.com/coder/coder/codersdk"
24
- "github.com/coder/coder/internal/ testutil"
24
+ "github.com/coder/coder/testutil"
25
25
)
26
26
27
27
func TestProvisionerJobLogs_Unit (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
13
13
"github.com/coder/coder/coderd/coderdtest"
14
14
"github.com/coder/coder/codersdk"
15
- "github.com/coder/coder/internal/ testutil"
15
+ "github.com/coder/coder/testutil"
16
16
"github.com/coder/coder/provisioner/echo"
17
17
"github.com/coder/coder/provisionersdk/proto"
18
18
)
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
15
15
"github.com/coder/coder/coderd/coderdtest"
16
16
"github.com/coder/coder/coderd/database"
17
17
"github.com/coder/coder/codersdk"
18
- "github.com/coder/coder/internal/ testutil"
18
+ "github.com/coder/coder/testutil"
19
19
"github.com/coder/coder/provisioner/echo"
20
20
"github.com/coder/coder/provisionersdk/proto"
21
21
)
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
20
20
21
21
"cdr.dev/slog"
22
22
"cdr.dev/slog/sloggers/slogtest"
23
- "github.com/coder/coder/internal/ testutil"
23
+ "github.com/coder/coder/testutil"
24
24
"github.com/coder/coder/peer"
25
25
)
26
26
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
"testing"
13
13
"time"
14
14
15
- "github.com/coder/coder/internal/ testutil"
15
+ "github.com/coder/coder/testutil"
16
16
"github.com/coder/coder/provisionerd/runner"
17
17
18
18
"github.com/hashicorp/yamux"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import (
16
16
"github.com/stretchr/testify/require"
17
17
"golang.org/x/xerrors"
18
18
19
- "github.com/coder/coder/internal/ testutil"
19
+ "github.com/coder/coder/testutil"
20
20
"github.com/coder/coder/pty"
21
21
)
22
22
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ func doNotCallTFailNowInsideGoroutine(m dsl.Matcher) {
88
88
func useStandardTimeoutsAndDelaysInTests (m dsl.Matcher ) {
89
89
m .Import ("github.com/stretchr/testify/require" )
90
90
m .Import ("github.com/stretchr/testify/assert" )
91
- m .Import ("github.com/coder/coder/internal/ testutil" )
91
+ m .Import ("github.com/coder/coder/testutil" )
92
92
93
93
m .Match (`context.WithTimeout($ctx, $duration)` ).
94
94
Where (m .File ().Imports ("testing" ) && ! m ["duration" ].Text .Matches ("^testutil\\ ." )).
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
19
19
"github.com/stretchr/testify/assert"
20
20
"github.com/stretchr/testify/require"
21
21
22
- "github.com/coder/coder/internal/ testutil"
22
+ "github.com/coder/coder/testutil"
23
23
"github.com/coder/coder/site"
24
24
)
25
25
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments