From 8bdf2770140be91ff668d62ae1127bbede585bbf Mon Sep 17 00:00:00 2001 From: janelletavares Date: Wed, 12 Jan 2022 16:27:49 -0800 Subject: [PATCH] nil interface --- cmd/meroxa/root/resources/create_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/meroxa/root/resources/create_test.go b/cmd/meroxa/root/resources/create_test.go index bf104f3d7..2d2057970 100644 --- a/cmd/meroxa/root/resources/create_test.go +++ b/cmd/meroxa/root/resources/create_test.go @@ -188,7 +188,11 @@ func TestCreateResourceExecutionWithEnvironmentName(t *testing.T) { c.flags.Environment = r.Environment.Name // override feature flags - startingFlags := global.Config.Get(global.UserFeatureFlagsEnv).(string) + featureFlags := global.Config.Get(global.UserFeatureFlagsEnv) + startingFlags := "" + if featureFlags != nil { + startingFlags = featureFlags.(string) + } newFlags := "" if startingFlags != "" { newFlags = startingFlags + " "