@@ -39,8 +39,8 @@ func TestConnectionStringFromSqlCmd(t *testing.T) {
3939 "sqlserver://.?database=somedatabase&trustservercertificate=true&workstation+id=mystation" ,
4040 },
4141 {
42- & ConnectSettings {WorkstationName : "mystation" , Encrypt : "false" , Database : "somedatabase" },
43- "sqlserver://.?database=somedatabase&encrypt=false&workstation+id=mystation" ,
42+ & ConnectSettings {WorkstationName : "mystation" , Encrypt : "false" , Database : "somedatabase" , LoginTimeoutSeconds : 50 },
43+ "sqlserver://.?database=somedatabase&dial+timeout=50& encrypt=false&workstation+id=mystation" ,
4444 },
4545 {
4646 & ConnectSettings {TrustServerCertificate : true , Password : pwd , ServerName : `someserver\instance` , Database : "somedatabase" , UserName : "someuser" },
@@ -631,10 +631,11 @@ func newConnect(t testing.TB) *ConnectSettings {
631631}
632632
633633func TestSqlcmdPrefersSharedMemoryProtocol (t * testing.T ) {
634- if runtime .GOOS != "windows" {
635- t .Skip ()
634+ if runtime .GOOS != "windows" || runtime . GOARCH != "amd64" {
635+ t .Skip ("Only valid on Windows amd64" )
636636 }
637637 assert .EqualValuesf (t , "lpc" , msdsn .ProtocolParsers [0 ].Protocol (), "lpc should be first protocol" )
638- assert .EqualValuesf (t , "np" , msdsn .ProtocolParsers [1 ].Protocol (), "np should be second protocol" )
639- assert .EqualValuesf (t , "tcp" , msdsn .ProtocolParsers [2 ].Protocol (), "tcp should be third protocol" )
638+ assert .EqualValuesf (t , "tcp" , msdsn .ProtocolParsers [1 ].Protocol (), "tcp should be second protocol" )
639+ assert .EqualValuesf (t , "np" , msdsn .ProtocolParsers [2 ].Protocol (), "np should be third protocol" )
640+
640641}
0 commit comments