From 4f6224131ef450d62ece29e47dc1fd0b6ba8c52d Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Mon, 23 Sep 2024 13:46:41 +0200 Subject: [PATCH] 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. --- connpool_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connpool_test.go b/connpool_test.go index 1f42ff6..42b26c8 100644 --- a/connpool_test.go +++ b/connpool_test.go @@ -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()