@@ -23,13 +23,12 @@ import (
23
23
ab "github.com/hyperledger/fabric/protos/orderer"
24
24
)
25
25
26
- /* Disabling this until the upgrade to Go 1.7 kicks in
27
26
func TestClientDeliverSeekWrong (t * testing.T ) {
28
27
t .Run ("out-of-range-1" , testClientDeliverSeekWrongFunc (uint64 (oldestOffset )- 1 , 10 ))
29
28
t .Run ("out-of-range-2" , testClientDeliverSeekWrongFunc (uint64 (newestOffset ), 10 ))
30
29
t .Run ("bad-window-1" , testClientDeliverSeekWrongFunc (uint64 (oldestOffset ), 0 ))
31
30
t .Run ("bad-window-2" , testClientDeliverSeekWrongFunc (uint64 (oldestOffset ), uint64 (testConf .General .MaxWindowSize + 1 )))
32
- } */
31
+ }
33
32
34
33
func testClientDeliverSeekWrongFunc (seek , window uint64 ) func (t * testing.T ) {
35
34
return func (t * testing.T ) {
@@ -64,12 +63,11 @@ func testClientDeliverSeekWrongFunc(seek, window uint64) func(t *testing.T) {
64
63
}
65
64
}
66
65
67
- /* Disabling this until the upgrade to Go 1.7 kicks in
68
66
func TestClientDeliverSeek (t * testing.T ) {
69
67
t .Run ("oldest" , testClientDeliverSeekFunc ("oldest" , 0 , 10 , 10 ))
70
68
t .Run ("in-between" , testClientDeliverSeekFunc ("specific" , uint64 (middleOffset ), 10 , 10 ))
71
69
t .Run ("newest" , testClientDeliverSeekFunc ("newest" , 0 , 10 , 1 ))
72
- } */
70
+ }
73
71
74
72
func testClientDeliverSeekFunc (label string , seek , window uint64 , expected int ) func (* testing.T ) {
75
73
return func (t * testing.T ) {
@@ -105,11 +103,10 @@ func testClientDeliverSeekFunc(label string, seek, window uint64, expected int)
105
103
}
106
104
}
107
105
108
- /* Disabling this until the upgrade to Go 1.7 kicks in
109
106
func TestClientDeliverAckWrong (t * testing.T ) {
110
107
t .Run ("out-of-range-ack-1" , testClientDeliverAckWrongFunc (uint64 (middleOffset )- 2 ))
111
108
t .Run ("out-of-range-ack-2" , testClientDeliverAckWrongFunc (uint64 (newestOffset )))
112
- } */
109
+ }
113
110
114
111
func testClientDeliverAckWrongFunc (ack uint64 ) func (t * testing.T ) {
115
112
return func (t * testing.T ) {
@@ -143,11 +140,10 @@ func testClientDeliverAckWrongFunc(ack uint64) func(t *testing.T) {
143
140
}
144
141
}
145
142
146
- /* Disabling this until the upgrade to Go 1.7 kicks in
147
143
func TestClientDeliverAck (t * testing.T ) {
148
144
t .Run ("in-between" , testClientDeliverAckFunc ("specific" , uint64 (middleOffset ), 10 , 10 , 2 * 10 ))
149
145
t .Run ("newest" , testClientDeliverAckFunc ("newest" , 0 , 10 , 1 , 1 ))
150
- } */
146
+ }
151
147
152
148
func testClientDeliverAckFunc (label string , seek , window uint64 , threshold , expected int ) func (t * testing.T ) {
153
149
return func (t * testing.T ) {
0 commit comments