Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-stones committed Mar 16, 2023
1 parent 3b409f5 commit ce1c510
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5883,7 +5883,7 @@ pub mod tests {
"Program 11111111111111111111111111111111 success"
],
"returnData":null,
"unitsConsumed":0
"unitsConsumed":150,
}
},
"id": 1,
Expand Down Expand Up @@ -5967,7 +5967,7 @@ pub mod tests {
"Program 11111111111111111111111111111111 success"
],
"returnData":null,
"unitsConsumed":0
"unitsConsumed":150,
}
},
"id": 1,
Expand Down Expand Up @@ -5995,7 +5995,7 @@ pub mod tests {
"Program 11111111111111111111111111111111 success"
],
"returnData":null,
"unitsConsumed":0
"unitsConsumed":150,
}
},
"id": 1,
Expand Down Expand Up @@ -6044,7 +6044,7 @@ pub mod tests {
"accounts":null,
"logs":[],
"returnData":null,
"unitsConsumed":0
"unitsConsumed":0,
}
},
"id":1
Expand Down Expand Up @@ -6073,7 +6073,7 @@ pub mod tests {
"Program 11111111111111111111111111111111 success"
],
"returnData":null,
"unitsConsumed":0
"unitsConsumed":150,
}
},
"id": 1,
Expand Down
8 changes: 4 additions & 4 deletions runtime/src/bank/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10430,7 +10430,7 @@ fn test_compute_budget_program_noop() {
assert_eq!(
*compute_budget,
ComputeBudget {
compute_unit_limit: 1,
compute_unit_limit: compute_budget::DEFAULT_INSTRUCTION_COMPUTE_UNIT_LIMIT as u64,
heap_size: Some(48 * 1024),
..ComputeBudget::default()
}
Expand All @@ -10442,7 +10442,7 @@ fn test_compute_budget_program_noop() {

let message = Message::new(
&[
ComputeBudgetInstruction::set_compute_unit_limit(1),
ComputeBudgetInstruction::set_compute_unit_limit(compute_budget::DEFAULT_INSTRUCTION_COMPUTE_UNIT_LIMIT),
ComputeBudgetInstruction::request_heap_frame(48 * 1024),
Instruction::new_with_bincode(program_id, &0, vec![]),
],
Expand Down Expand Up @@ -10473,7 +10473,7 @@ fn test_compute_request_instruction() {
assert_eq!(
*compute_budget,
ComputeBudget {
compute_unit_limit: 1,
compute_unit_limit: compute_budget::DEFAULT_INSTRUCTION_COMPUTE_UNIT_LIMIT as u64,
heap_size: Some(48 * 1024),
..ComputeBudget::default()
}
Expand All @@ -10485,7 +10485,7 @@ fn test_compute_request_instruction() {

let message = Message::new(
&[
ComputeBudgetInstruction::set_compute_unit_limit(1),
ComputeBudgetInstruction::set_compute_unit_limit(compute_budget::DEFAULT_INSTRUCTION_COMPUTE_UNIT_LIMIT),
ComputeBudgetInstruction::request_heap_frame(48 * 1024),
Instruction::new_with_bincode(program_id, &0, vec![]),
],
Expand Down

0 comments on commit ce1c510

Please sign in to comment.