From be1edd71cf45b6f8ef26b2e88a206c61acf98161 Mon Sep 17 00:00:00 2001 From: Rishab Jain <68556660+Chief-Rishab@users.noreply.github.com> Date: Mon, 25 Sep 2023 01:00:39 +0530 Subject: [PATCH] chore: fix bigquery plugin test (#484) --- plugins/extractors/bigquery/auditlog/auditlog_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/extractors/bigquery/auditlog/auditlog_test.go b/plugins/extractors/bigquery/auditlog/auditlog_test.go index 317afbc1..82ebc5bf 100644 --- a/plugins/extractors/bigquery/auditlog/auditlog_test.go +++ b/plugins/extractors/bigquery/auditlog/auditlog_test.go @@ -30,7 +30,7 @@ func TestInit(t *testing.T) { }), ) - assert.EqualError(t, err, "failed to create logadmin client: client is nil, failed initiating client") + assert.EqualError(t, err, "create logadmin client: invalid character '-' in numeric literal") }) t.Run("should not return error invalid config if config is not wrong", func(t *testing.T) { @@ -129,7 +129,7 @@ func TestParsePayload(t *testing.T) { ld, err := parsePayload(auditLog) - assert.EqualError(t, err, "failed to get audit data from metadata: metadata field is nil") + assert.EqualError(t, err, "get audit data from metadata: metadata field is nil") assert.Nil(t, ld) }) }