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]
55jobs :
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
Original file line number Diff line number Diff 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{\A USE.*\z }
143145 _ ( 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 +}
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
You can’t perform that action at this time.
0 commit comments