Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
fix out of max client quota error
Browse files Browse the repository at this point in the history
sometimes unbind method will fail due to out of max client quota,
therefore, client connections are released via restart application

Change-Id: Ie6b0f1b73a272431dfeadc48b53f7d22e8e3f698
Signed-off-by: Pin Xie <pxie@vmware.com>
Reviewed-on: http://reviews.cloudfoundry.org/11264
Tested-by: CI Master <cf-ci@rbcon.com>
Reviewed-by: Chunjie Zhu <czhu@vmware.com>
Reviewed-by: Michael Zhang <zhangcheng@rbcon.com>
  • Loading branch information
pxie committed Nov 13, 2012
1 parent 932e325 commit 0dbc578
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/service_quota/ruby19_sinatra_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,8 @@ def verify_max_clients(max_clients, manifest, service_url, error_msg)
r.body_str.should == 'ok'
r.close

app.unbind(service)
service.delete
service2 = create_service(manifest)
app.bind(service2)
#clean up all service connection
app.restart

r = app.get_response(:post, "/service/#{service_url}/clients/#{max_clients+1}", "")
r.response_code.should == 200
Expand Down

0 comments on commit 0dbc578

Please sign in to comment.