Skip to content

Commit fc8c7d4

Browse files
test: tighten default-mode assertion to forbid any mssql: occurrence
1 parent 932fb6d commit fc8c7d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/sqlcmd/format_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func TestAddErrorStripsMssqlPrefixByDefault(t *testing.T) {
174174
got := errOut.String()
175175
assert.Contains(t, got, "Msg 50000, Level 16, State 1, Server server, Line 7")
176176
assert.Contains(t, got, "Something failed")
177-
assert.NotContains(t, got, "mssql: Something failed")
177+
assert.NotContains(t, got, "mssql:")
178178
}
179179

180180
func TestAddErrorWithRawErrorsKeepsMssqlPrefix(t *testing.T) {

0 commit comments

Comments
 (0)