lib/switchman/test_helper.rb in switchman-1.4.2 vs lib/switchman/test_helper.rb in switchman-1.4.3

- old
+ new

@@ -15,14 +15,14 @@ end # can't auto-create a new shard on the default shard's db server if the # default shard is split across multiple db servers if ::ActiveRecord::Base.connection_handler.connection_pool_list.length > 1 - server1 = DatabaseServer.create(:config => Shard.default.database_server.config) + server1 = DatabaseServer.create(Shard.default.database_server.config) else server1 = Shard.default.database_server end - server2 = DatabaseServer.create(:config => Shard.default.database_server.config) + server2 = DatabaseServer.create(Shard.default.database_server.config) if server1 == Shard.default.database_server && server1.config[:shard1] && server1.config[:shard2] # look for the shards in the db already shard1 = find_existing_test_shard(server1, server1.config[:shard1]) shard2 = find_existing_test_shard(server2, server1.config[:shard2]) \ No newline at end of file