cleanup: resolve parallel test issue

This commit resolves parallel test issues
and also excludes internal/util/conn_pool_test.go
as those test can't run in parallel.

Updates: #1586

Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
Yati Padia
2021-07-11 12:57:41 +05:30
committed by mergify[bot]
parent 8b3136e696
commit 69c9e5ffb1
3 changed files with 19 additions and 15 deletions

View File

@ -73,8 +73,8 @@ func (cp *ConnPool) fakeGet(monitors, user, keyfile string) (*rados.Conn, string
return conn, unique, nil
}
// nolint:paralleltest,tparallel
func TestConnPool(t *testing.T) {
t.Parallel()
cp := NewConnPool(interval, expiry)
defer cp.Destroy()