Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
whalecold committed Sep 2, 2024
1 parent 7a62c3e commit 7d4ea5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xdssuite/circuitbreak_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/kitex-contrib/xds/core/xdsresource"
)

func cbConifg(conf interface{}) interface{} {
func cbConfig(conf interface{}) interface{} {
m := conf.(map[string]interface{})
m = m["cb_config"].(map[string]interface{})
return m["service"]
Expand All @@ -48,7 +48,7 @@ func TestCircuitBreaker(t *testing.T) {
},
},
})
assert.Equal(t, cbConifg(cb.cb.Dump()), map[string]interface{}{
assert.Equal(t, cbConfig(cb.cb.Dump()), map[string]interface{}{
"c1": circuitbreak.CBConfig{
Enable: true,
MinSample: 100,
Expand All @@ -64,7 +64,7 @@ func TestCircuitBreaker(t *testing.T) {
},
},
})
assert.Equal(t, cbConifg(cb.cb.Dump()), map[string]interface{}{
assert.Equal(t, cbConfig(cb.cb.Dump()), map[string]interface{}{
"c1": circuitbreak.CBConfig{
Enable: false,
},
Expand All @@ -81,7 +81,7 @@ func TestCircuitBreaker(t *testing.T) {
},
},
})
assert.Equal(t, cbConifg(cb.cb.Dump()), map[string]interface{}{
assert.Equal(t, cbConfig(cb.cb.Dump()), map[string]interface{}{
"c1": circuitbreak.CBConfig{
Enable: false,
},
Expand All @@ -98,7 +98,7 @@ func TestCircuitBreaker(t *testing.T) {
},
},
})
assert.Equal(t, cbConifg(cb.cb.Dump()), map[string]interface{}{
assert.Equal(t, cbConfig(cb.cb.Dump()), map[string]interface{}{
"c1": circuitbreak.CBConfig{
Enable: false,
},
Expand Down

0 comments on commit 7d4ea5b

Please sign in to comment.