Skip to content

Commit 9597b0c

Browse files
authored
Update coderdtest.go
1 parent a9a19b7 commit 9597b0c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

coderd/coderdtest/coderdtest.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"github.com/google/uuid"
1616
"github.com/moby/moby/pkg/namesgenerator"
1717
"github.com/stretchr/testify/require"
18-
"go.opencensus.io/stats/view"
1918
"google.golang.org/api/idtoken"
2019
"google.golang.org/api/option"
2120

@@ -39,13 +38,6 @@ type Options struct {
3938
// New constructs an in-memory coderd instance and returns
4039
// the connected client.
4140
func New(t *testing.T, options *Options) *codersdk.Client {
42-
// Stops the opencensus.io worker from leaking a goroutine.
43-
// The worker isn't used anyways, and is an indirect dependency
44-
// of the Google Cloud SDK.
45-
t.Cleanup(func() {
46-
view.Stop()
47-
})
48-
4941
if options == nil {
5042
options = &Options{}
5143
}

0 commit comments

Comments
 (0)