Skip to content

Commit

Permalink
Merge branch 'region-helper' into consumer-v4
Browse files Browse the repository at this point in the history
  • Loading branch information
crimson-gao committed Feb 23, 2024
2 parents eb4d546 + b431e4f commit b8feb17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/region_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func TestParseRegion(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, "xx-test-acdr-ut-1", region)

region, err = ParseRegion("http://cn-hangzhou-share.log.aliyuncs.com")
region, err = ParseRegion("http://cn-hangzhou-intranet.log.aliyuncs.com")
assert.NoError(t, err)
assert.Equal(t, "cn-hangzhou", region)

Expand All @@ -23,7 +23,7 @@ func TestParseRegion(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, "ap-southease-1", region)

region, err = ParseRegion("cn-shanghai-corp-share.sls.aliyuncs.com")
region, err = ParseRegion("cn-shanghai-corp.sls.aliyuncs.com")
assert.NoError(t, err)
assert.Equal(t, "cn-shanghai-corp", region)

Expand Down

0 comments on commit b8feb17

Please sign in to comment.