mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
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:
parent
0e5f0954f2
commit
8c5f44ae42
2 changed files with 46 additions and 36 deletions
|
@ -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
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue