File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ on: [push, pull_request]
5
5
jobs :
6
6
test :
7
7
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
9
10
10
11
env :
11
12
COMPOSE_FILE : docker-compose.ci.yml
Original file line number Diff line number Diff line change @@ -138,18 +138,22 @@ class SQLServerRakeStructureDumpLoadTest < SQLServerRakeTest
138
138
139
139
it "dumps structure and accounts for defncopy oddities" do
140
140
skip "debug defncopy on windows later" if host_windows?
141
+
141
142
quietly { db_tasks . structure_dump configuration , filename }
143
+
142
144
_ ( filedata ) . wont_match %r{\A USE.*\z }
143
145
_ ( filedata ) . wont_match %r{\A GO.*\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 +}
147
149
end
148
150
149
151
it "can load dumped structure" do
150
152
skip "debug defncopy on windows later" if host_windows?
153
+
151
154
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\] ?}
153
157
db_tasks . purge ( configuration )
154
158
_ ( connection . tables ) . wont_include "users"
155
159
db_tasks . load_schema db_config , :sql , filename
You can’t perform that action at this time.
0 commit comments