rack_session_access icon indicating copy to clipboard operation
rack_session_access copied to clipboard

PG::NoActiveSqlTransaction Random Error

Open noctivityinc opened this issue 9 years ago • 2 comments

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

noctivityinc avatar May 26 '16 19:05 noctivityinc

It does not look like this gem issue.

I need more information

  • What is acrual spec?
  • How is rspec confugured
  • Do you use transactional_fixtures/DataCleaner/etc?

ayanko avatar May 27 '16 11:05 ayanko

Any update?

ayanko avatar May 31 '17 13:05 ayanko