Skip to content

Commit

Permalink
Remove unnecessary os.Environ's from tests
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Seplowitz <mseplowitz@bloomberg.net>
  • Loading branch information
mikesep committed Dec 8, 2020
1 parent 780428e commit 68ca9b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion test_01_hello_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func (s *HelloSuite) Test_FailsOutsideDocker() {
cmd.Args = append(cmd.Args, goTestCoverageArgs(s.T().Name())...)
cmd.Args = append(cmd.Args, goTestRaceDetectorArgs()...)
cmd.Dir = s.dir
cmd.Env = os.Environ()

out, err := cmd.CombinedOutput()
if err == nil {
Expand Down
2 changes: 0 additions & 2 deletions test_03_redispinger-service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ func (s *RedisPingerSuite) Test_FullMode() {
func (s *RedisPingerSuite) runDkt(ctx context.Context, exePath string, arg ...string) []byte {
cmd := exec.CommandContext(ctx, exePath, arg...)
cmd.Dir = s.dir
cmd.Env = os.Environ()

out, err := cmd.Output()
if err != nil {
Expand All @@ -132,7 +131,6 @@ func (s *RedisPingerSuite) runDkt(ctx context.Context, exePath string, arg ...st
func (s *RedisPingerSuite) startPinger(ctx context.Context) (cmd *exec.Cmd, port string) {
cmd = exec.CommandContext(ctx, "go", "run", ".")
cmd.Dir = s.dir
cmd.Env = os.Environ()

stdout, err := cmd.StdoutPipe()
s.Require().NoError(err)
Expand Down

0 comments on commit 68ca9b1

Please sign in to comment.