Skip to content

Commit f7130d0

Browse files
authored
Fix CI (#1364)
1 parent e984b96 commit f7130d0

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on: [push, pull_request]
55
jobs:
66
test:
77
name: Run test suite
8-
runs-on: ubuntu-20.04 # TODO: Change back to 'ubuntu-latest' when https://github.com/microsoft/mssql-docker/issues/899 resolved.
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 10
910

1011
env:
1112
COMPOSE_FILE: docker-compose.ci.yml

test/cases/rake_test_sqlserver.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,22 @@ class SQLServerRakeStructureDumpLoadTest < SQLServerRakeTest
138138

139139
it "dumps structure and accounts for defncopy oddities" do
140140
skip "debug defncopy on windows later" if host_windows?
141+
141142
quietly { db_tasks.structure_dump configuration, filename }
143+
142144
_(filedata).wont_match %r{\AUSE.*\z}
143145
_(filedata).wont_match %r{\AGO.*\z}
144-
_(filedata).must_match %r{email\s+nvarchar\(4000\)}
145-
_(filedata).must_match %r{background1\s+nvarchar\(max\)}
146-
_(filedata).must_match %r{background2\s+text\s+}
146+
_(filedata).must_match %r{\[?email\]?\s+nvarchar\(4000\)}
147+
_(filedata).must_match %r{\[?background1\]?\s+nvarchar\(max\)}
148+
_(filedata).must_match %r{\[?background2\]?\s+text\s+}
147149
end
148150

149151
it "can load dumped structure" do
150152
skip "debug defncopy on windows later" if host_windows?
153+
151154
quietly { db_tasks.structure_dump configuration, filename }
152-
_(filedata).must_match %r{CREATE TABLE dbo\.users}
155+
156+
_(filedata).must_match %r{CREATE TABLE \[?dbo\]?\.\[?users\]?}
153157
db_tasks.purge(configuration)
154158
_(connection.tables).wont_include "users"
155159
db_tasks.load_schema db_config, :sql, filename

0 commit comments

Comments
 (0)