Skip to content

PG::NoActiveSqlTransaction Random Error #22

@noctivityinc

Description

@noctivityinc

Im receiving this error randomly while running my specs:

 Failure/Error: page.set_rack_session(checkout_experience: 'three_step')
     ActiveRecord::StatementInvalid:
       PG::NoActiveSqlTransaction: ERROR:  SAVEPOINT can only be used in transaction blocks
       : SAVEPOINT active_record_1

I'm setting the session in a before block:

   before(:each) do
     page.set_rack_session(checkout_experience: 'three_step')
  end

When I look at the output for the page at the time of error, I see the following:

screen shot 2016-05-26 at 3 02 46 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions