Skip to content

Commit d181731

Browse files
authored
fix build and lint (#1613)
Signed-off-by: Spike Curtis <spike@coder.com>
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy