Skip to content

Commit

Permalink
fix: ut
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceLiZhixin committed Jan 16, 2022
1 parent e8677d1 commit 39916bb
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion config/testdata/consumer_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ references:

shutdown_conf:
timeout: 60s
step_timeout: 10s
step-timeout: 10s

protocol_conf:
# when you choose the Dubbo protocol, the following configuration takes effect
Expand Down
2 changes: 1 addition & 1 deletion config/testdata/consumer_config_with_configcenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ references:

shutdown_conf:
timeout: 60s
step_timeout: 10s
step-timeout: 10s

protocol_conf:
dubbo:
Expand Down
2 changes: 1 addition & 1 deletion config/testdata/consumer_config_withoutProtocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ references:

shutdown_conf:
timeout: 60s
step_timeout: 10s
step-timeout: 10s

protocol_conf:
dubbo:
Expand Down
2 changes: 1 addition & 1 deletion config/testdata/provider_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protocols:

shutdown_conf:
timeout: 60s
step_timeout: 10s
step-timeout: 10s

protocol_conf:
dubbo:
Expand Down
2 changes: 1 addition & 1 deletion config/testdata/provider_config_withoutProtocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protocols:

shutdown_conf:
timeout: 60s
step_timeout: 10s
step-timeout: 10s

protocol_conf:
dubbo:
Expand Down
2 changes: 1 addition & 1 deletion protocol/rest/config/reader/testdata/consumer_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ references:

shutdown_conf:
timeout: 60s
step_timeout: 10s
step-timeout: 10s

7 changes: 0 additions & 7 deletions registry/protocol/protocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,6 @@ func TestDestroy(t *testing.T) {
return true
})
assert.Equal(t, 0, count)

var count2 int
regProtocol.bounds.Range(func(key, value interface{}) bool {
count2++
return true
})
assert.Equal(t, 0, count2)
}

func TestExportWithOverrideListener(t *testing.T) {
Expand Down

0 comments on commit 39916bb

Please sign in to comment.