Guest User

Untitled

a guest
Jan 21st, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. 1) Api::InventoryNotification persisting to the database should return an error when a hotel cannot be found
  2. Failure/Error: @hotel_1 = Property.make(:api_source => api_source)
  3. PGError: ERROR: deadlock detected
  4. DETAIL: Process 30908 waits for RowExclusiveLock on relation 1103847 of database 1103761; blocked by process 31174.
  5. Process 31174 waits for AccessExclusiveLock on relation 1103799 of database 1103761; blocked by process 30908.
  6. HINT: See server log for query details.
  7. : INSERT INTO "properties" ("account_number", "api_source_id", "atdw_id", "cancellation_policy_id", "chain_id", "check_in_after", "check_out_before", "country_id", "created_at", "description", "gst_applicable", "latitude", "longitude", "maximum_child_age", "maximum_infant_age", "name", "number_of_rooms", "policy_info", "postcode", "property_category_id", "property_group_id", "rating", "rating_type", "region_id", "room_type_code_sequence", "state_id", "status", "street_address", "street_address_2", "suburb", "time_zone", "updated_at", "url") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33) RETURNING "id"
  8. # ./spec/support/blueprints.rb:173:in `make'
  9. # ./spec/models/api/inventory_notification_spec.rb:61:in `block (3 levels) in <top (required)>'
  10. .................................
  11. 2) Api::RatePlanNotification save should not save rate plans if message is invalid
  12. Failure/Error: let(:room_type) { @room_type = RoomType.make }
  13. PGError: ERROR: deadlock detected
  14. DETAIL: Process 30908 waits for RowExclusiveLock on relation 1103847 of database 1103761; blocked by process 31174.
  15. Process 31174 waits for AccessExclusiveLock on relation 1103799 of database 1103761; blocked by process 30908.
  16. HINT: See server log for query details.
  17. : INSERT INTO "properties" ("account_number", "api_source_id", "atdw_id", "cancellation_policy_id", "chain_id", "check_in_after", "check_out_before", "country_id", "created_at", "description", "gst_applicable", "latitude", "longitude", "maximum_child_age", "maximum_infant_age", "name", "number_of_rooms", "policy_info", "postcode", "property_category_id", "property_group_id", "rating", "rating_type", "region_id", "room_type_code_sequence", "state_id", "status", "street_address", "street_address_2", "suburb", "time_zone", "updated_at", "url") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33) RETURNING "id"
  18. # ./spec/support/blueprints.rb:173:in `make'
Add Comment
Please, Sign In to add comment