Skip to content

Commit 0d57e62

Browse files
committed
[FAB-5236] Fix method name
Rename a method in benchmark test to be more precise. Also a typo in blockfile_mgr.go is fixed. Change-Id: Iea289a71e4dfb987a39a850514bbfcac99dc4781 Signed-off-by: Jay Guo <guojiannan1101@gmail.com>
1 parent d6b54c8 commit 0d57e62

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

common/ledger/blkstorage/fsblkstorage/blockfile_mgr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The blockfile manager stores blocks of data into a file system. That file
6868
storage is done by creating sequentially numbered files of a configured size
6969
i.e blockfile_000000, blockfile_000001, etc..
7070
71-
Each transcation in a block is stored with information about the number of
71+
Each transaction in a block is stored with information about the number of
7272
bytes in that transaction
7373
Adding txLoc [fileSuffixNum=0, offset=3, bytesLength=104] for tx [1:0] to index
7474
Adding txLoc [fileSuffixNum=0, offset=107, bytesLength=104] for tx [1:1] to index

orderer/common/server/benchmark_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func TestOrdererBenchmark(t *testing.T) {
129129
}
130130

131131
t.Run("Benchmark Sample Test", func(t *testing.T) {
132-
benchmarkBroadcast(t, 1, 5, PreferredMaxBytes, 1, 0, 1, true)
132+
benchmarkOrderer(t, 1, 5, PreferredMaxBytes, 1, 0, 1, true)
133133
})
134134
}
135135

@@ -167,7 +167,7 @@ func TestOrdererBenchmarkSoloBroadcast(t *testing.T) {
167167

168168
for factors := range combinations(args) {
169169
t.Run(factors.String(), func(t *testing.T) {
170-
benchmarkBroadcast(
170+
benchmarkOrderer(
171171
t,
172172
factors.numOfChannels,
173173
factors.totalTx,
@@ -215,7 +215,7 @@ func TestOrdererBenchmarkSoloDeliver(t *testing.T) {
215215

216216
for factors := range combinations(args) {
217217
t.Run(factors.String(), func(t *testing.T) {
218-
benchmarkBroadcast(
218+
benchmarkOrderer(
219219
t,
220220
factors.numOfChannels,
221221
factors.totalTx,
@@ -263,7 +263,7 @@ func TestOrdererBenchmarkKafkaBroadcast(t *testing.T) {
263263

264264
for factors := range combinations(args) {
265265
t.Run(factors.String(), func(t *testing.T) {
266-
benchmarkBroadcast(
266+
benchmarkOrderer(
267267
t,
268268
factors.numOfChannels,
269269
factors.totalTx,
@@ -311,7 +311,7 @@ func TestOrdererBenchmarkKafkaDeliver(t *testing.T) {
311311

312312
for factors := range combinations(args) {
313313
t.Run(factors.String(), func(t *testing.T) {
314-
benchmarkBroadcast(
314+
benchmarkOrderer(
315315
t,
316316
factors.numOfChannels,
317317
factors.totalTx,
@@ -325,7 +325,7 @@ func TestOrdererBenchmarkKafkaDeliver(t *testing.T) {
325325
}
326326
}
327327

328-
func benchmarkBroadcast(
328+
func benchmarkOrderer(
329329
t *testing.T,
330330
numOfChannels int,
331331
totalTx int,

0 commit comments

Comments
 (0)