From c9d67c86fb69e9b0da0087963f9d722a223a2306 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Fri, 24 Jun 2022 17:42:18 +0200 Subject: [PATCH] staticcheck: ignore suggestion to use context.TODO instead of nil when testing nil Context --- fs/config_test.go | 2 +- fs/filter/filter_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/config_test.go b/fs/config_test.go index 9813dc218..f9157bbf6 100644 --- a/fs/config_test.go +++ b/fs/config_test.go @@ -11,7 +11,7 @@ func TestGetConfig(t *testing.T) { ctx := context.Background() // Check nil - config := GetConfig(nil) + config := GetConfig(nil) //lint:ignore SA1012 we want to test passing a nil Context and therefore ignore lint suggestion of using context.TODO assert.Equal(t, globalConfig, config) // Check empty config diff --git a/fs/filter/filter_test.go b/fs/filter/filter_test.go index 27da120c4..aada638fc 100644 --- a/fs/filter/filter_test.go +++ b/fs/filter/filter_test.go @@ -798,7 +798,7 @@ func TestGetConfig(t *testing.T) { ctx := context.Background() // Check nil - config := GetConfig(nil) + config := GetConfig(nil) //lint:ignore SA1012 we want to test passing a nil Context and therefore ignore lint suggestion of using context.TODO assert.Equal(t, globalConfig, config) // Check empty config