Skip to content

Commit

Permalink
Indicate if SQL Server CI test run
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed Nov 7, 2023
1 parent b3a30d3 commit 38f0277
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
ci:
environment:
- ACTIVERECORD_UNITTEST_HOST=sqlserver
- CI=true
- SQLSERVER_CI=true
build:
context: .
dockerfile: Dockerfile.ci
Expand Down
2 changes: 1 addition & 1 deletion test/cases/transaction_test_sqlserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class TransactionTestSQLServer < ActiveRecord::TestCase

describe "when READ_COMMITTED_SNAPSHOT is set" do
it "should use READ COMMITTED as an isolation level" do
skip "This test sometimes causes subsequent tests to fail with error 'DBPROCESS is dead or not enabled'. The test passes if run alone." if ENV["CI"]
skip "This test sometimes causes subsequent tests to fail with error 'DBPROCESS is dead or not enabled'. The test passes if run alone." if ENV["SQLSERVER_CI"]

connection.execute "ALTER DATABASE [#{connection.current_database}] SET ALLOW_SNAPSHOT_ISOLATION ON"
connection.execute "ALTER DATABASE [#{connection.current_database}] SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE"
Expand Down

0 comments on commit 38f0277

Please sign in to comment.