Skip to content

Commit

Permalink
Remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
cll-gg committed Nov 7, 2024
1 parent 7b3a906 commit e42e6e3
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions pkg/loop/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,35 +187,6 @@ func TestGetMap(t *testing.T) {
}
}

func TestGetMap(t *testing.T) {
os.Setenv("TEST_PREFIX_KEY1", "value1")
os.Setenv("TEST_PREFIX_KEY2", "value2")
os.Setenv("OTHER_KEY", "othervalue")

defer func() {
os.Unsetenv("TEST_PREFIX_KEY1")
os.Unsetenv("TEST_PREFIX_KEY2")
os.Unsetenv("OTHER_KEY")
}()

result := getMap("TEST_PREFIX_")

expected := map[string]string{
"KEY1": "value1",
"KEY2": "value2",
}

if len(result) != len(expected) {
t.Errorf("Expected map length %d, got %d", len(expected), len(result))
}

for k, v := range expected {
if result[k] != v {
t.Errorf("Expected key %s to have value %s, but got %s", k, v, result[k])
}
}
}

func TestManagedGRPCClientConfig(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit e42e6e3

Please sign in to comment.