Skip to content

Commit

Permalink
Update env_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyenought authored Jan 12, 2024
1 parent 9efc997 commit 3801fee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions v2/nacos/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ import (
"github.com/stretchr/testify/assert"
)

func TestEnvFunc(t *testing.T) {
assert.Equal(t, int64(8848), NacosPort())
assert.Equal(t, "127.0.0.1", NacosAddr())
assert.Equal(t, "public", NacosNameSpaceId())
}

func TestParseTags(t *testing.T) {
assert.Equal(t, parseTags("k1=v1,k2=v2"), map[string]string{
"k1": "v1",
Expand Down

0 comments on commit 3801fee

Please sign in to comment.