@@ -24,9 +24,9 @@ func init() {
24
24
func TestNewConnectionConfig (t * testing.T ) {
25
25
c := NewConnectionConfig ()
26
26
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 ) )
28
28
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 ) )
30
30
test .S (t ).ExpectEquals (c .User , "" )
31
31
test .S (t ).ExpectEquals (c .Password , "" )
32
32
test .S (t ).ExpectEquals (c .TransactionIsolation , "" )
@@ -45,9 +45,9 @@ func TestDuplicateCredentials(t *testing.T) {
45
45
46
46
dup := c .DuplicateCredentials (InstanceKey {Hostname : "otherhost" , Port : 3310 })
47
47
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 ) )
49
49
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 ) )
51
51
test .S (t ).ExpectEquals (dup .User , "gromit" )
52
52
test .S (t ).ExpectEquals (dup .Password , "penguin" )
53
53
test .S (t ).ExpectEquals (dup .tlsConfig , c .tlsConfig )
@@ -63,9 +63,9 @@ func TestDuplicate(t *testing.T) {
63
63
64
64
dup := c .Duplicate ()
65
65
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 ) )
67
67
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 ) )
69
69
test .S (t ).ExpectEquals (dup .User , "gromit" )
70
70
test .S (t ).ExpectEquals (dup .Password , "penguin" )
71
71
test .S (t ).ExpectEquals (dup .TransactionIsolation , transactionIsolation )
0 commit comments