Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

spec: test connection status around reset

  • Loading branch information...
commit f4df3f8631dc62956699dad4c30d9fc1009113ec 1 parent 4156ae5
@royaltm authored
View
2  spec/em_client_autoreconnect.rb
@@ -104,8 +104,10 @@
end
it "should get database size using query after async manual connection reset" do
+ @client.status.should be PG::CONNECTION_BAD
@client.async_reset do |conn|
conn.should be @client
+ @client.status.should be PG::CONNECTION_OK
@tested_proc.call
end.should be_a_kind_of ::EM::DefaultDeferrable
end
View
2  spec/em_synchrony_client_autoreconnect.rb
@@ -101,7 +101,9 @@
end
it "should get database size using query after manual connection reset" do
+ @client.status.should be PG::CONNECTION_BAD
@client.reset
+ @client.status.should be PG::CONNECTION_OK
@tested_proc.call
end
Please sign in to comment.
Something went wrong with that request. Please try again.