core/storage: hijack connections for notification listeners (#4811)

core/storage: hijack connections for notification listeners (#4806)

Co-authored-by: Caleb Doxsey <cdoxsey@pomerium.com>
This commit is contained in:
backport-actions-token[bot] 2023-12-04 09:53:56 -07:00 committed by GitHub
parent 0e5f0954f2
commit 8c5f44ae42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 36 deletions

View file

@ -195,6 +195,9 @@ func TestBackend(t *testing.T) {
storagetest.TestBackendPatch(t, ctx, backend)
})
assert.Equal(t, int32(0), backend.pool.Stat().AcquiredConns(),
"acquired connections should be released")
return nil
}))
}