cli: Speed up program deploys (#15347)
* Speed up deploys
* fix test
(cherry picked from commit f5c564bc6c
)
This commit is contained in:
committed by
Michael Vines
parent
c3dda3ce0c
commit
26b420bd39
@ -1640,9 +1640,7 @@ fn send_and_confirm_transactions_with_spinner<T: Signers>(
|
||||
for pending_signatures_chunk in
|
||||
pending_signatures.chunks(MAX_GET_SIGNATURE_STATUSES_QUERY_ITEMS)
|
||||
{
|
||||
if let Ok(result) =
|
||||
rpc_client.get_signature_statuses_with_history(pending_signatures_chunk)
|
||||
{
|
||||
if let Ok(result) = rpc_client.get_signature_statuses(pending_signatures_chunk) {
|
||||
let statuses = result.value;
|
||||
for (signature, status) in
|
||||
pending_signatures_chunk.iter().zip(statuses.into_iter())
|
||||
|
@ -1075,8 +1075,9 @@ fn test_cli_program_show() {
|
||||
max_len: Some(max_len),
|
||||
});
|
||||
config.output_format = OutputFormat::JsonCompact;
|
||||
let min_slot = rpc_client.get_slot().unwrap();
|
||||
process_command(&config).unwrap();
|
||||
let slot = rpc_client.get_slot().unwrap();
|
||||
let max_slot = rpc_client.get_slot().unwrap();
|
||||
|
||||
// Verify show
|
||||
config.signers = vec![&keypair];
|
||||
@ -1129,7 +1130,8 @@ fn test_cli_program_show() {
|
||||
.unwrap()
|
||||
.as_u64()
|
||||
.unwrap();
|
||||
assert_eq!(slot, deployed_slot);
|
||||
assert!(deployed_slot >= min_slot);
|
||||
assert!(deployed_slot <= max_slot);
|
||||
let data_len = json
|
||||
.as_object()
|
||||
.unwrap()
|
||||
|
Reference in New Issue
Block a user