From 1f054a77ea99227d5e9a24b95c063b7d53bb8d24 Mon Sep 17 00:00:00 2001 From: Valery Krivchikov Date: Sat, 15 Sep 2018 14:50:17 +0300 Subject: [PATCH] fix new variables on left side --- conn_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conn_test.go b/conn_test.go index 2e4ea7b2..763efd11 100644 --- a/conn_test.go +++ b/conn_test.go @@ -1711,8 +1711,8 @@ func TestListenNotifySelfNotification(t *testing.T) { t.Fatalf("Unexpected error on Query: %v", rows.Err()) } - ctx, cancel := context.WithTimeout(context.Background(), time.Second) - defer cancel() + ctx, cncl := context.WithTimeout(context.Background(), time.Second) + defer cncl() notification, err = conn.WaitForNotification(ctx) if err != nil { t.Fatalf("Unexpected error on WaitForNotification: %v", err)