-
Notifications
You must be signed in to change notification settings - Fork 277
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1844 +/- ##
==========================================
- Coverage 59.21% 59.19% -0.02%
==========================================
Files 125 125
Lines 5171 5171
==========================================
- Hits 3062 3061 -1
- Misses 2106 2107 +1
Partials 3 3
Continue to review full report at Codecov.
|
tests/e2e/common.go
Outdated
func GetEnv(envVar string, defaultValue string) string { | ||
val := os.Getenv(envVar) | ||
if val == "" { | ||
return defaultValue | ||
} | ||
return val | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is implemented in at lease one other file:
Line 97 in c98e255
func GetEnv(envVar string, defaultValue string) string { |
Might as well move this under pkg/utils
and use that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let me try. I hope not to run into cyclic imports.
Addressing comment from previous PR #1828 (comment)
Affected area:
Tests [X]
CI System [X]
Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
No