Skip to content

Commit 17701de

Browse files
Fix unit tests failed.
1 parent 88dc018 commit 17701de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Testing.Databases.SqlServer.SqlCmd.Tests/SqlCmdSqlServerExtensionsTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ CREATE TABLE ErrorBlabla
121121

122122
server.Master.Invoking(m => m.RunScript(temporaryFile.FileName, settings))
123123
.Should().ThrowExactly<SqlCmdException>()
124-
.Which.Output.Should().Be(
124+
.Which.Output.Should().StartWith(
125125
"""
126126
GOOOOOO !
127127
Changed database context to 'SqlCmdSqlServerExtensionsTest_RunScript_WithErros'.
128-
Msg 102, Level 15, State 1, Server TOURREAU-LAPTOP\LOCALDB#19CCEEF8, Line 1
129-
Incorrect syntax near 'ErrorBlabla'.
130-
""");
128+
Msg 102, Level 15, State 1,
129+
""")
130+
.And.EndWith("Incorrect syntax near 'ErrorBlabla'.");
131131

132132
var database = server.GetDatabase("SqlCmdSqlServerExtensionsTest_RunScript_WithErros");
133133

0 commit comments

Comments
 (0)