Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d181731

Browse files
authored
fix build and lint (#1613)
Signed-off-by: Spike Curtis <[email protected]>
1 parent 1871b09 commit d181731

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cli/delete_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ import (
1313
func TestDelete(t *testing.T) {
1414
t.Run("WithParameter", func(t *testing.T) {
1515
t.Parallel()
16-
client := coderdtest.New(t, nil)
16+
client := coderdtest.New(t, &coderdtest.Options{IncludeProvisionerD: true})
1717
user := coderdtest.CreateFirstUser(t, client)
18-
coderdtest.NewProvisionerDaemon(t, client)
1918
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
2019
coderdtest.AwaitTemplateVersionJob(t, client, version.ID)
2120
template := coderdtest.CreateTemplate(t, client, user.OrganizationID, version.ID)

cli/logout_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package cli_test
33
import (
44
"testing"
55

6+
"github.com/stretchr/testify/require"
7+
68
"github.com/coder/coder/cli/clitest"
79
"github.com/coder/coder/coderd/coderdtest"
810
"github.com/coder/coder/pty/ptytest"
9-
"github.com/stretchr/testify/require"
1011
)
1112

1213
func TestLogout(t *testing.T) {

cli/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func server() *cobra.Command {
110110
logger.Warn(cmd.Context(), "failed to start telemetry exporter", slog.Error(err))
111111
} else {
112112
defer func() {
113-
// allow time for traces to flush even if command context is cancelled
113+
// allow time for traces to flush even if command context is canceled
114114
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
115115
defer cancel()
116116
_ = tracerProvider.Shutdown(ctx)

coderd/coderd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func newRouter(options *Options, a *api) chi.Router {
103103
})
104104
},
105105
httpmw.Prometheus,
106-
tracing.HTTPMW(api.TracerProvider, "coderd.http"),
106+
tracing.HTTPMW(a.TracerProvider, "coderd.http"),
107107
)
108108

109109
r.Route("/api/v2", func(r chi.Router) {

0 commit comments

Comments
 (0)