Skip to content

Commit

Permalink
new updates
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAngel1196 committed Oct 25, 2023
1 parent 35b03ef commit f7013c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestGetUserConfigFromFile(t *testing.T) {
}

func TestGetUserConfigFromEnv(t *testing.T) {
t.Setenv("VULNBOT_VERBOSE", "0")
t.Setenv("VULNBOT_VERBOSE", "1")
t.Setenv("VULNBOT_GITHUB_ORG", "hitchhikers")
// This should override the config file
t.Setenv("VULNBOT_DEFAULT_SLACK_CHANNEL", "other_slack_channel")
Expand All @@ -105,7 +105,7 @@ func TestGetUserConfigFromEnv(t *testing.T) {
cfg, err := config.GetUserConfig(flags, testDataPath)
assert.Nil(t, err)

assert.Equal(t, 0, cfg.Verbose)
assert.Equal(t, 1, cfg.Verbose)
assert.Equal(t, "hitchhikers", cfg.Github_org)
assert.Equal(t, "other_slack_channel", cfg.Default_slack_channel)
}

0 comments on commit f7013c5

Please sign in to comment.