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

Skip to content

Commit 8e2f954

Browse files
committed
fix merge
1 parent 7c76350 commit 8e2f954

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cli/start.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ func start() *cobra.Command {
5353
tlsKeyFile string
5454
tlsMinVersion string
5555
useTunnel bool
56-
traceDD bool
56+
traceDatadog bool
5757
)
5858
root := &cobra.Command{
5959
Use: "start",
6060
RunE: func(cmd *cobra.Command, args []string) error {
61-
if traceDD {
61+
if traceDatadog {
6262
tracer.Start()
6363
defer tracer.Stop()
6464
}
@@ -329,7 +329,7 @@ func start() *cobra.Command {
329329
`Specifies the minimum supported version of TLS. Accepted values are "tls10", "tls11", "tls12" or "tls13"`)
330330
cliflag.BoolVarP(root.Flags(), &useTunnel, "tunnel", "", "CODER_DEV_TUNNEL", false, "Serve dev mode through a Cloudflare Tunnel for easy setup")
331331
_ = root.Flags().MarkHidden("tunnel")
332-
cliflag.BoolVarP(root.Flags(), &traceDD, "trace-datadog", "", "CODER_TRACE_DATADOG", false, "Send tracing data to a datadog agent")
332+
cliflag.BoolVarP(root.Flags(), &traceDatadog, "trace-datadog", "", "CODER_TRACE_DATADOG", false, "Send tracing data to a datadog agent")
333333

334334
return root
335335
}

cli/start_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ func TestStart(t *testing.T) {
201201
<-done
202202
})
203203
t.Run("DatadogTracerNoLeak", func(t *testing.T) {
204+
t.Parallel()
204205
ctx, cancelFunc := context.WithCancel(context.Background())
205206
defer cancelFunc()
206207
root, _ := clitest.New(t, "start", "--dev", "--tunnel=false", "--address", ":0", "--trace-datadog=true")

0 commit comments

Comments
 (0)