Skip to content

Commit

Permalink
internal: cleanup roundrobin_test with cleanup function (grpc#2519)
Browse files Browse the repository at this point in the history
This PR refactor the code with a simple cleanup function.
  • Loading branch information
andyxning authored and menghanl committed Dec 13, 2018
1 parent 14de8b6 commit 102aee9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions balancer/roundrobin/roundrobin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ func startTestServers(count int) (_ *test, err error) {

defer func() {
if err != nil {
for _, s := range t.servers {
s.Stop()
}
t.cleanup()
}
}()
for i := 0; i < count; i++ {
Expand Down

0 comments on commit 102aee9

Please sign in to comment.