Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Jul 20, 2023
1 parent 1804983 commit a7a9f53
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions service/telemetry/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
package telemetry

import (
"os"
"testing"

"github.com/stretchr/testify/assert"
Expand All @@ -14,10 +13,9 @@ import (

func TestLoadConfig(t *testing.T) {
tests := []struct {
name string
cfg *Config
success bool
hostproc string
name string
cfg *Config
success bool
}{
{
name: "basic metric telemetry",
Expand All @@ -43,11 +41,6 @@ func TestLoadConfig(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if tt.hostproc != "" {
os.Setenv("HOST_PROC", tt.hostproc)
} else {
os.Unsetenv("HOST_PROC")
}
err := tt.cfg.Validate()
if tt.success {
assert.NoError(t, err)
Expand Down

0 comments on commit a7a9f53

Please sign in to comment.