Skip to content

Commit

Permalink
nil flags
Browse files Browse the repository at this point in the history
  • Loading branch information
janelletavares committed Jan 13, 2022
1 parent 4b0bd03 commit 1fbba98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cmd/meroxa/root/pipelines/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ func TestCreatePipelineWithEnvironmentExecution(t *testing.T) {
c.flags.Environment = pi.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 + " "
Expand Down
6 changes: 5 additions & 1 deletion cmd/meroxa/root/resources/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,11 @@ func TestCreateResourceExecutionWithEnvironmentUUID(t *testing.T) {
c.flags.Environment = r.Environment.UUID

// 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 + " "
Expand Down

0 comments on commit 1fbba98

Please sign in to comment.