Skip to content

Commit 6db1982

Browse files
committed
fix ci.
1 parent e854c0a commit 6db1982

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

rpc/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Response
263263
"error": {
264264
"code": -1000,
265265
"data": "SigNotEnough",
266-
"message":"AlertFailedToVerifySignatures: The count of sigs less than threshold."
266+
"message":"AlertFailedToVerifySignatures: The count of sigs is less than threshold."
267267
},
268268
"jsonrpc": "2.0",
269269
"result": null,
@@ -6548,7 +6548,7 @@ Different reject types:
65486548
* `ExceededMaximumAncestorsCount`: Transaction exceeded maximum ancestors count limit
65496549
* `ExceededTransactionSizeLimit`: Transaction exceeded maximum size limit
65506550
* `Full`: Transaction are replaced because the pool is full
6551-
* `Duplicated`: Transaction already exist in transaction_pool
6551+
* `Duplicated`: Transaction already exists in transaction_pool
65526552
* `Malformed`: Malformed transaction
65536553
* `DeclaredWrongCycles`: Declared wrong cycles
65546554
* `Resolve`: Resolve failed

rpc/src/module/alert.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub trait AlertRpc {
5959
/// "error": {
6060
/// "code": -1000,
6161
/// "data": "SigNotEnough",
62-
/// "message":"AlertFailedToVerifySignatures: The count of sigs less than threshold."
62+
/// "message":"AlertFailedToVerifySignatures: The count of sigs is less than threshold."
6363
/// },
6464
/// "jsonrpc": "2.0",
6565
/// "result": null,

rpc/src/tests/error.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ fn test_submit_transaction_error() {
2222
let min_fee_rate = FeeRate::from_u64(500);
2323
let reject = Reject::LowFeeRate(min_fee_rate, 100, 50);
2424
assert_eq!(
25-
"PoolRejectedTransactionByMinFeeRate: The min fee rate is 500 shannons/KW, so the transaction fee should be 100 shannons at least, but only got 50",
25+
"PoolRejectedTransactionByMinFeeRate: The min fee rate is 500 shannons/KW, requiring a transaction fee of at least 100 shannons, but the fee provided is only 50",
2626
RPCError::from_submit_transaction_reject(&reject).message
2727
);
2828

2929
let reject = Reject::ExceededMaximumAncestorsCount;
3030
assert_eq!(
31-
"PoolRejectedTransactionByMaxAncestorsCountLimit: Transaction exceeded maximum ancestors count limit, try send it later",
31+
"PoolRejectedTransactionByMaxAncestorsCountLimit: Transaction exceeded maximum ancestors count limit; try later",
3232
RPCError::from_submit_transaction_reject(&reject).message
3333
);
3434

@@ -37,13 +37,13 @@ fn test_submit_transaction_error() {
3737
FeeRate::from_u64(500)
3838
));
3939
assert_eq!(
40-
"PoolIsFull: Transaction are replaced because the pool is full, the fee_rate for this transaction is: 500 shannons/KW",
40+
"PoolIsFull: Transaction is replaced because the pool is full, the fee_rate for this transaction is: 500 shannons/KW",
4141
RPCError::from_submit_transaction_reject(&reject).message
4242
);
4343

4444
let reject = Reject::Duplicated(Byte32::new([0; 32]));
4545
assert_eq!(
46-
"PoolRejectedDuplicatedTransaction: Transaction(Byte32(0x0000000000000000000000000000000000000000000000000000000000000000)) already exist in transaction_pool",
46+
"PoolRejectedDuplicatedTransaction: Transaction(Byte32(0x0000000000000000000000000000000000000000000000000000000000000000)) already exists in transaction_pool",
4747
RPCError::from_submit_transaction_reject(&reject).message
4848
);
4949

test/src/specs/relay/transaction_relay_low_fee_rate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl Spec for TransactionRelayLowFeeRate {
3636
node1,
3737
0,
3838
10,
39-
"reject tx The min fee rate is 1000 shannons/KW, so the transaction fee should be 242 shannons at least, but only got 0"
39+
"Reject tx The min fee rate is 1000 shannons/KW, requiring a transaction fee of at least 242 shannons, but the fee provided is only 0"
4040
)
4141
.is_some());
4242
}

test/src/specs/tx_pool/orphan_tx.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ impl Spec for TxPoolOrphanUnordered {
285285
.err()
286286
.unwrap()
287287
.to_string()
288-
.contains("already exist in transaction_pool"));
288+
.contains("already exists in transaction_pool"));
289289

290290
assert!(
291291
run_replay_tx(&net, node0, parent, 3, 1),

util/app-config/src/tests/ckb_run_replay.bats

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function ckb_run { #@test
2424
run _ckb_run
2525
[ "$status" -eq 0 ]
2626
# assert_output --regexp "ckb_chain::chain.*block number:.*, hash:.*, size:.*, cycles:.*"
27-
assert_output --regexp "INFO ckb_bin all tokio tasks and threads have exited, ckb shutdown"
27+
assert_output --regexp "INFO ckb_bin All tokio tasks and threads have exited. CKB shutdown"
2828
}
2929

3030
function ckb_replay { #@test

util/app-config/src/tests/graceful_shutdown.bats

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ function ckb_graceful_shutdown { #@test
3232
assert_output --regexp "INFO ckb_sync::types::header_map HeaderMap limit_memory received exit signal, exit now"
3333
assert_output --regexp "INFO ckb_network::network NetworkService receive exit signal, start shutdown..."
3434
assert_output --regexp "INFO ckb_network::network NetworkService shutdown now"
35-
assert_output --regexp "INFO ckb_tx_pool::process TxPool save successfully"
35+
assert_output --regexp "INFO ckb_tx_pool::process TxPool saved successfully"
3636
assert_output --regexp "INFO ckb_tx_pool::service TxPool process_service exit now"
37-
assert_output --regexp "INFO ckb_stop_handler::stop_register wait thread ChainService done"
38-
assert_output --regexp "INFO ckb_stop_handler::stop_register wait thread BlockDownload done"
39-
assert_output --regexp "INFO ckb_bin waiting all tokio tasks exit..."
40-
assert_output --regexp "INFO ckb_bin all tokio tasks and threads have exited, ckb shutdown"
37+
assert_output --regexp "INFO ckb_stop_handler::stop_register Waiting thread ChainService done"
38+
assert_output --regexp "INFO ckb_stop_handler::stop_register Waiting thread BlockDownload done"
39+
assert_output --regexp "INFO ckb_bin Waiting for all tokio tasks to exit..."
40+
assert_output --regexp "INFO ckb_bin All tokio tasks and threads have exited. CKB shutdown"
4141
}
4242

4343
teardown_file() {

util/app-config/src/tests/init_reset.bats

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ _reset_all() {
1414
function init { #@test
1515
run _init
1616
[ "$status" -eq 0 ]
17-
assert_output --regexp "[iI]nitialized CKB directory.*create.*Genesis Hash: 0x92b197aa1fba0f63633922c61c92375c9c074a93e85963554f5499fe1450d0e5"
17+
assert_output --regexp "[iI]nitialized CKB directory.*Create.*Genesis Hash: 0x92b197aa1fba0f63633922c61c92375c9c074a93e85963554f5499fe1450d0e5"
1818
}
1919
function init_mainnet { #@test
2020
run _init_mainnet
2121
[ "$status" -eq 0 ]
22-
assert_output --regexp "Reinitialized CKB directory.*create.*Genesis Hash: 0x92b197aa1fba0f63633922c61c92375c9c074a93e85963554f5499fe1450d0e5"
22+
assert_output --regexp "Reinitialized CKB directory.*Create.*Genesis Hash: 0x92b197aa1fba0f63633922c61c92375c9c074a93e85963554f5499fe1450d0e5"
2323
}
2424

2525
function reset_all { #@test
2626
run _reset_all
2727
[ "$status" -eq 0 ]
28-
assert_output --regexp "deleting .*data"
28+
assert_output --regexp "Deleting .*data"
2929
}
3030

3131
setup_file() {

util/jsonrpc-types/src/pool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ pub enum PoolTransactionReject {
267267
/// Transaction are replaced because the pool is full
268268
Full(String),
269269

270-
/// Transaction already exist in transaction_pool
270+
/// Transaction already exists in transaction_pool
271271
Duplicated(String),
272272

273273
/// Malformed transaction

util/types/src/core/tx_pool.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub enum Reject {
3232
#[error("Transaction is replaced because the pool is full, {0}")]
3333
Full(String),
3434

35-
/// Transaction already exist in transaction_pool
35+
/// Transaction already exists in transaction_pool
3636
#[error("Transaction({0}) already exists in transaction_pool")]
3737
Duplicated(Byte32),
3838

@@ -45,7 +45,7 @@ pub enum Reject {
4545
DeclaredWrongCycles(Cycle, Cycle),
4646

4747
/// Resolve failed
48-
#[error("Resolution failed {0}")]
48+
#[error("Resolve failed {0}")]
4949
Resolve(OutPointError),
5050

5151
/// Verification failed

0 commit comments

Comments
 (0)