From c7acfc8f897bc2c72b39db73584ab3c16ceb7eb6 Mon Sep 17 00:00:00 2001 From: Harkishen-Singh Date: Tue, 10 May 2022 11:50:25 +0530 Subject: [PATCH] Fix tests Signed-off-by: Harkishen-Singh --- go.mod | 4 ++-- go.sum | 4 ++++ pkg/rules/config_test.go | 11 +++++++---- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 2e1637a703..c3a7eac181 100644 --- a/go.mod +++ b/go.mod @@ -17,11 +17,11 @@ require ( github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 github.com/hashicorp/go-hclog v1.2.0 - github.com/jackc/pgconn v1.12.0 + github.com/jackc/pgconn v1.11.0 github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa github.com/jackc/pgproto3/v2 v2.3.0 github.com/jackc/pgtype v1.11.0 - github.com/jackc/pgx/v4 v4.16.0 + github.com/jackc/pgx/v4 v4.15.0 github.com/jaegertracing/jaeger v1.33.0 github.com/oklog/run v1.1.0 github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.49.0 diff --git a/go.sum b/go.sum index 8801e2b6c8..422532b2ca 100644 --- a/go.sum +++ b/go.sum @@ -1219,6 +1219,8 @@ github.com/jackc/pgconn v1.11.0 h1:HiHArx4yFbwl91X3qqIHtUFoiIfLNJXCQRsnzkiwwaQ= github.com/jackc/pgconn v1.11.0/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI= github.com/jackc/pgconn v1.12.0 h1:/RvQ24k3TnNdfBSW0ou9EOi5jx2cX7zfE8n2nLKuiP0= github.com/jackc/pgconn v1.12.0/go.mod h1:ZkhRC59Llhrq3oSfrikvwQ5NaxYExr6twkdkMLaKono= +github.com/jackc/pgconn v1.12.1 h1:rsDFzIpRk7xT4B8FufgpCCeyjdNpKyghZeSefViE5W8= +github.com/jackc/pgconn v1.12.1/go.mod h1:ZkhRC59Llhrq3oSfrikvwQ5NaxYExr6twkdkMLaKono= github.com/jackc/pgerrcode v0.0.0-20201024163028-a0d42d470451 h1:WAvSpGf7MsFuzAtK4Vk7R4EVe+liW4x83r4oWu0WHKw= github.com/jackc/pgerrcode v0.0.0-20201024163028-a0d42d470451/go.mod h1:a/s9Lp5W7n/DD0VrVoyJ00FbP2ytTPDVOivvn2bMlds= github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa h1:s+4MhCQ6YrzisK6hFJUX53drDT4UsSW3DEhKn0ifuHw= @@ -1259,6 +1261,8 @@ github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96/go.mod h1:mdxmSJJuR08 github.com/jackc/pgx/v4 v4.0.0-20190421002000-1b8f0016e912/go.mod h1:no/Y67Jkk/9WuGR0JG/JseM9irFbnEPbuWV2EELPNuM= github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQnOEnf1dqHGpw7JmHqHc1NxDoalibchSk9/RWuDc= github.com/jackc/pgx/v4 v4.12.1-0.20210724153913-640aa07df17c/go.mod h1:1QD0+tgSXP7iUjYm9C1NxKhny7lq6ee99u/z+IHFcgs= +github.com/jackc/pgx/v4 v4.15.0 h1:B7dTkXsdILD3MF987WGGCcg+tvLW6bZJdEcqVFeU//w= +github.com/jackc/pgx/v4 v4.15.0/go.mod h1:D/zyOyXiaM1TmVWnOM18p0xdDtdakRBa0RsVGI3U3bw= github.com/jackc/pgx/v4 v4.15.1-0.20220219175125-b6b24f9e8a5d h1:8r5Lurk3Ur6K9Tz94Zz3kekJLZ8iVAG/GWHNqtLlmnw= github.com/jackc/pgx/v4 v4.15.1-0.20220219175125-b6b24f9e8a5d/go.mod h1:D/zyOyXiaM1TmVWnOM18p0xdDtdakRBa0RsVGI3U3bw= github.com/jackc/pgx/v4 v4.16.0 h1:4k1tROTJctHotannFYzu77dY3bgtMRymQP7tXQjqpPk= diff --git a/pkg/rules/config_test.go b/pkg/rules/config_test.go index 2801b60c27..70302f499e 100644 --- a/pkg/rules/config_test.go +++ b/pkg/rules/config_test.go @@ -91,10 +91,13 @@ func TestValidate(t *testing.T) { }, }, }, - HTTPClientConfig: prometheus_common_config.HTTPClientConfig{FollowRedirects: true}, - Scheme: "https", - APIVersion: "v2", - Timeout: model.Duration(10000000000), + HTTPClientConfig: prometheus_common_config.HTTPClientConfig{ + FollowRedirects: true, + EnableHTTP2: true, + }, + Scheme: "https", + APIVersion: "v2", + Timeout: model.Duration(10000000000), }, }, },