Skip to content

Commit

Permalink
internal/appsec/config_test.go: fix test
Browse files Browse the repository at this point in the history
Co-authored-by: François Mazeau <[email protected]>
  • Loading branch information
Julio-Guerra and Hellzy authored Jan 18, 2022
1 parent 8a633da commit f8c29fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/appsec/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestConfig(t *testing.T) {
t.Run("negative", func(t *testing.T) {
restoreEnv := cleanEnv()
defer restoreEnv()
require.NoError(t, os.Setenv(wafTimeoutEnvVar, "not a duration string"))
require.NoError(t, os.Setenv(wafTimeoutEnvVar, "-1s"))
cfg, err := newConfig()
require.NoError(t, err)
require.Equal(t, expectedDefaultConfig, cfg)
Expand Down

0 comments on commit f8c29fd

Please sign in to comment.