@@ -39,8 +39,8 @@ func TestConnectionStringFromSqlCmd(t *testing.T) {
39
39
"sqlserver://.?database=somedatabase&trustservercertificate=true&workstation+id=mystation" ,
40
40
},
41
41
{
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" ,
44
44
},
45
45
{
46
46
& ConnectSettings {TrustServerCertificate : true , Password : pwd , ServerName : `someserver\instance` , Database : "somedatabase" , UserName : "someuser" },
@@ -631,10 +631,11 @@ func newConnect(t testing.TB) *ConnectSettings {
631
631
}
632
632
633
633
func 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" )
636
636
}
637
637
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
+
640
641
}
0 commit comments