Rename test for accurate context cancellation

Updated the test name from `TestConnPool_GetContextTimeout` to `TestConnPool_GetContextCancel` to better reflect its functionality. This change improves test readability and maintains consistency with the context usage in the test.
This commit is contained in:
Winni Neessen 2024-09-23 13:46:41 +02:00
parent c8684886ed
commit 4f6224131e
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -352,7 +352,7 @@ func TestConnPool_Concurrency(t *testing.T) {
}
}
func TestConnPool_GetContextTimeout(t *testing.T) {
func TestConnPool_GetContextCancel(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()