Vet/race fixes (#4421)
This addresses all found vet/race fixes in community edition. --------- Co-authored-by: Damian Debkowski <damian.debkowski@hashicorp.com>
This commit is contained in:
1 parent
4535af25aa
commit
014a5a7aae
46 files changed
+411
-176
No files matched your search
@@ -24,7 +24,7 @@ func TestRegisterHandler(t *testing.T) {
|
||||
t.Cleanup(func() {
|
||||
handlers = oldHandler
|
||||
})
|
||||
handlers = sync.Map{}
|
||||
handlers = new(sync.Map)
|
||||
|
||||
err := RegisterHandler("protocol", fn)
|
||||
require.NoError(err)
|
||||
@@ -47,7 +47,7 @@ func TestAlwaysTcpGetHandler(t *testing.T) {
|
||||
t.Cleanup(func() {
|
||||
handlers = oldHandler
|
||||
})
|
||||
handlers = sync.Map{}
|
||||
handlers = new(sync.Map)
|
||||
_, err := tcpOnly("wid", nil)
|
||||
assert.ErrorIs(err, ErrUnknownProtocol)
|
||||
|
||||
|
||||
Reference in new issue
Block a user