@@ -24,7 +24,7 @@ import (
24
24
25
25
"github.com/Shopify/sarama"
26
26
"github.com/hyperledger/fabric/common/configtx/tool/provisional"
27
- mockconfigvaluesorderer "github.com/hyperledger/fabric/common/mocks/configvalues/channel/orderer "
27
+ mockconfig "github.com/hyperledger/fabric/common/mocks/config "
28
28
"github.com/hyperledger/fabric/orderer/localconfig"
29
29
mockblockcutter "github.com/hyperledger/fabric/orderer/mocks/blockcutter"
30
30
mockmultichain "github.com/hyperledger/fabric/orderer/mocks/multichain"
@@ -36,8 +36,8 @@ import (
36
36
37
37
var cp = newChainPartition (provisional .TestChainID , rawPartition )
38
38
39
- func newMockSharedConfigManager () * mockconfigvaluesorderer. SharedConfig {
40
- return & mockconfigvaluesorderer. SharedConfig {KafkaBrokersVal : testGenesisConf .Orderer .Kafka .Brokers }
39
+ func newMockSharedConfigManager () * mockconfig. Orderer {
40
+ return & mockconfig. Orderer {KafkaBrokersVal : testGenesisConf .Orderer .Kafka .Brokers }
41
41
}
42
42
43
43
type mockConsenterImpl struct {
@@ -132,7 +132,7 @@ func TestKafkaConsenterEmptyBatch(t *testing.T) {
132
132
Batches : make (chan []* cb.Envelope ),
133
133
BlockCutterVal : mockblockcutter .NewReceiver (),
134
134
ChainIDVal : provisional .TestChainID ,
135
- SharedConfigVal : & mockconfigvaluesorderer. SharedConfig {BatchTimeoutVal : testTimePadding },
135
+ SharedConfigVal : & mockconfig. Orderer {BatchTimeoutVal : testTimePadding },
136
136
}
137
137
defer close (cs .BlockCutterVal .Block )
138
138
@@ -167,7 +167,7 @@ func TestKafkaConsenterBatchTimer(t *testing.T) {
167
167
Batches : make (chan []* cb.Envelope ),
168
168
BlockCutterVal : mockblockcutter .NewReceiver (),
169
169
ChainIDVal : provisional .TestChainID ,
170
- SharedConfigVal : & mockconfigvaluesorderer. SharedConfig {BatchTimeoutVal : batchTimeout },
170
+ SharedConfigVal : & mockconfig. Orderer {BatchTimeoutVal : batchTimeout },
171
171
}
172
172
defer close (cs .BlockCutterVal .Block )
173
173
@@ -219,7 +219,7 @@ func TestKafkaConsenterTimerHaltOnFilledBatch(t *testing.T) {
219
219
Batches : make (chan []* cb.Envelope ),
220
220
BlockCutterVal : mockblockcutter .NewReceiver (),
221
221
ChainIDVal : provisional .TestChainID ,
222
- SharedConfigVal : & mockconfigvaluesorderer. SharedConfig {BatchTimeoutVal : batchTimeout },
222
+ SharedConfigVal : & mockconfig. Orderer {BatchTimeoutVal : batchTimeout },
223
223
}
224
224
defer close (cs .BlockCutterVal .Block )
225
225
@@ -279,7 +279,7 @@ func TestKafkaConsenterConfigStyleMultiBatch(t *testing.T) {
279
279
Batches : make (chan []* cb.Envelope ),
280
280
BlockCutterVal : mockblockcutter .NewReceiver (),
281
281
ChainIDVal : provisional .TestChainID ,
282
- SharedConfigVal : & mockconfigvaluesorderer. SharedConfig {BatchTimeoutVal : testTimePadding },
282
+ SharedConfigVal : & mockconfig. Orderer {BatchTimeoutVal : testTimePadding },
283
283
}
284
284
defer close (cs .BlockCutterVal .Block )
285
285
@@ -329,7 +329,7 @@ func TestKafkaConsenterTimeToCutForced(t *testing.T) {
329
329
Batches : make (chan []* cb.Envelope ),
330
330
BlockCutterVal : mockblockcutter .NewReceiver (),
331
331
ChainIDVal : provisional .TestChainID ,
332
- SharedConfigVal : & mockconfigvaluesorderer. SharedConfig {BatchTimeoutVal : batchTimeout },
332
+ SharedConfigVal : & mockconfig. Orderer {BatchTimeoutVal : batchTimeout },
333
333
}
334
334
defer close (cs .BlockCutterVal .Block )
335
335
@@ -386,7 +386,7 @@ func TestKafkaConsenterTimeToCutDuplicate(t *testing.T) {
386
386
Batches : make (chan []* cb.Envelope ),
387
387
BlockCutterVal : mockblockcutter .NewReceiver (),
388
388
ChainIDVal : provisional .TestChainID ,
389
- SharedConfigVal : & mockconfigvaluesorderer. SharedConfig {BatchTimeoutVal : batchTimeout },
389
+ SharedConfigVal : & mockconfig. Orderer {BatchTimeoutVal : batchTimeout },
390
390
}
391
391
defer close (cs .BlockCutterVal .Block )
392
392
@@ -475,7 +475,7 @@ func TestKafkaConsenterTimeToCutStale(t *testing.T) {
475
475
Batches : make (chan []* cb.Envelope ),
476
476
BlockCutterVal : mockblockcutter .NewReceiver (),
477
477
ChainIDVal : provisional .TestChainID ,
478
- SharedConfigVal : & mockconfigvaluesorderer. SharedConfig {BatchTimeoutVal : batchTimeout },
478
+ SharedConfigVal : & mockconfig. Orderer {BatchTimeoutVal : batchTimeout },
479
479
}
480
480
defer close (cs .BlockCutterVal .Block )
481
481
@@ -534,7 +534,7 @@ func TestKafkaConsenterTimeToCutLarger(t *testing.T) {
534
534
Batches : make (chan []* cb.Envelope ),
535
535
BlockCutterVal : mockblockcutter .NewReceiver (),
536
536
ChainIDVal : provisional .TestChainID ,
537
- SharedConfigVal : & mockconfigvaluesorderer. SharedConfig {BatchTimeoutVal : batchTimeout },
537
+ SharedConfigVal : & mockconfig. Orderer {BatchTimeoutVal : batchTimeout },
538
538
}
539
539
defer close (cs .BlockCutterVal .Block )
540
540
@@ -616,7 +616,7 @@ func TestKafkaConsenterRestart(t *testing.T) {
616
616
Batches : make (chan []* cb.Envelope ),
617
617
BlockCutterVal : mockblockcutter .NewReceiver (),
618
618
ChainIDVal : provisional .TestChainID ,
619
- SharedConfigVal : & mockconfigvaluesorderer. SharedConfig {BatchTimeoutVal : batchTimeout },
619
+ SharedConfigVal : & mockconfig. Orderer {BatchTimeoutVal : batchTimeout },
620
620
}
621
621
defer close (cs .BlockCutterVal .Block )
622
622
0 commit comments