@@ -24,9 +24,9 @@ func init() {
2424func TestNewConnectionConfig (t * testing.T ) {
2525 c := NewConnectionConfig ()
2626 test .S (t ).ExpectEquals (c .Key .Hostname , "" )
27- test .S (t ).ExpectEquals (c .Key .Port , 0 )
27+ test .S (t ).ExpectEquals (c .Key .Port , int64 ( 0 ) )
2828 test .S (t ).ExpectEquals (c .ImpliedKey .Hostname , "" )
29- test .S (t ).ExpectEquals (c .ImpliedKey .Port , 0 )
29+ test .S (t ).ExpectEquals (c .ImpliedKey .Port , int64 ( 0 ) )
3030 test .S (t ).ExpectEquals (c .User , "" )
3131 test .S (t ).ExpectEquals (c .Password , "" )
3232 test .S (t ).ExpectEquals (c .TransactionIsolation , "" )
@@ -45,9 +45,9 @@ func TestDuplicateCredentials(t *testing.T) {
4545
4646 dup := c .DuplicateCredentials (InstanceKey {Hostname : "otherhost" , Port : 3310 })
4747 test .S (t ).ExpectEquals (dup .Key .Hostname , "otherhost" )
48- test .S (t ).ExpectEquals (dup .Key .Port , 3310 )
48+ test .S (t ).ExpectEquals (dup .Key .Port , int64 ( 3310 ) )
4949 test .S (t ).ExpectEquals (dup .ImpliedKey .Hostname , "otherhost" )
50- test .S (t ).ExpectEquals (dup .ImpliedKey .Port , 3310 )
50+ test .S (t ).ExpectEquals (dup .ImpliedKey .Port , int64 ( 3310 ) )
5151 test .S (t ).ExpectEquals (dup .User , "gromit" )
5252 test .S (t ).ExpectEquals (dup .Password , "penguin" )
5353 test .S (t ).ExpectEquals (dup .tlsConfig , c .tlsConfig )
@@ -63,9 +63,9 @@ func TestDuplicate(t *testing.T) {
6363
6464 dup := c .Duplicate ()
6565 test .S (t ).ExpectEquals (dup .Key .Hostname , "myhost" )
66- test .S (t ).ExpectEquals (dup .Key .Port , 3306 )
66+ test .S (t ).ExpectEquals (dup .Key .Port , int64 ( 3306 ) )
6767 test .S (t ).ExpectEquals (dup .ImpliedKey .Hostname , "myhost" )
68- test .S (t ).ExpectEquals (dup .ImpliedKey .Port , 3306 )
68+ test .S (t ).ExpectEquals (dup .ImpliedKey .Port , int64 ( 3306 ) )
6969 test .S (t ).ExpectEquals (dup .User , "gromit" )
7070 test .S (t ).ExpectEquals (dup .Password , "penguin" )
7171 test .S (t ).ExpectEquals (dup .TransactionIsolation , transactionIsolation )
0 commit comments