Skip to content

Commit

Permalink
don't clear env on test suite (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavDhulipala authored Sep 10, 2024
1 parent e285f3e commit 6fe2b0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions exporter/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ func TestPython3Wrapper(t *testing.T) {
}

func TestDetectTraceRootPath_Env(t *testing.T) {
os.Clearenv()
testDir := t.TempDir()
t.Setenv("TRACE_ROOT_PATH", testDir)
// Ensure that the function panics if given a TRACE_ROOT_PATh with no 'templates' subdirectory
Expand All @@ -219,7 +218,6 @@ func TestDetectTraceRootPath_Env(t *testing.T) {
}

func TestDetectTraceRootPath_Default(t *testing.T) {
os.Clearenv()
testDir := t.TempDir()
os.Chdir(testDir)

Expand Down
2 changes: 1 addition & 1 deletion exporter/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestCliFetcher(t *testing.T) {
assert := assert.New(t)
cliFetcher := NewCliScraper("ls")
data, err := cliFetcher.FetchRawBytes()
assert.Nil(err)
assert.NoError(err)
assert.NotNil(data)
}

Expand Down

0 comments on commit 6fe2b0c

Please sign in to comment.