Skip to content

Commit 74d1343

Browse files
committed
Update compute units again
1 parent 32ec8d9 commit 74d1343

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

program/tests/close.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ fn buffer_success() {
210210
],
211211
&[
212212
Check::success(),
213-
Check::compute_units(3_774),
213+
Check::compute_units(3_628),
214214
// Closed, but still owned by the loader.
215215
Check::account(&buffer)
216216
.data(&[0, 0, 0, 0]) // Size of Uninitialized.
@@ -525,7 +525,7 @@ fn programdata_success() {
525525
],
526526
&[
527527
Check::success(),
528-
Check::compute_units(5_151),
528+
Check::compute_units(4_995),
529529
// Closed, but still owned by the loader.
530530
Check::account(&programdata)
531531
.data(&[0, 0, 0, 0]) // Size of Uninitialized.

program/tests/deploy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ fn success() {
670670
],
671671
&[
672672
Check::success(),
673-
Check::compute_units(12_052),
673+
Check::compute_units(11_831),
674674
Check::account(&program)
675675
.data(
676676
&bincode::serialize(&UpgradeableLoaderState::Program {

program/tests/extend_program.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ fn success() {
613613
],
614614
&[
615615
Check::success(),
616-
Check::compute_units(7_315),
616+
Check::compute_units(7_215),
617617
Check::account(&programdata)
618618
.lamports(new_rent_exemption)
619619
.space(new_size)

program/tests/initialize_buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn success() {
111111
],
112112
&[
113113
Check::success(),
114-
Check::compute_units(1_836),
114+
Check::compute_units(1_763),
115115
Check::account(&source)
116116
.lamports(100_000_000)
117117
.owner(&solana_loader_v3_program::id())

program/tests/set_authority.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn buffer_success() {
204204
],
205205
&[
206206
Check::success(),
207-
Check::compute_units(5_135),
207+
Check::compute_units(4_850),
208208
Check::account(&buffer)
209209
.data(
210210
&check_data(Some(new_authority)), // Updated.
@@ -355,7 +355,7 @@ fn programdata_success() {
355355
],
356356
&[
357357
Check::success(),
358-
Check::compute_units(5_219),
358+
Check::compute_units(4_936),
359359
Check::account(&programdata)
360360
.data(
361361
&check_data(Some(new_authority)), // Updated.
@@ -384,7 +384,7 @@ fn programdata_success() {
384384
],
385385
&[
386386
Check::success(),
387-
Check::compute_units(2_080),
387+
Check::compute_units(2_023),
388388
Check::account(&programdata)
389389
.data(
390390
&check_data(None), // Updated.

program/tests/set_authority_checked.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ fn buffer_success() {
205205
],
206206
&[
207207
Check::success(),
208-
Check::compute_units(4_732),
208+
Check::compute_units(4_573),
209209
Check::account(&buffer)
210210
.data(
211211
&check_data(Some(new_authority)), // Updated.
@@ -388,7 +388,7 @@ fn programdata_success() {
388388
],
389389
&[
390390
Check::success(),
391-
Check::compute_units(4_801),
391+
Check::compute_units(4_642),
392392
Check::account(&programdata)
393393
.data(
394394
&check_data(Some(new_authority)), // Updated.

program/tests/upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ fn success() {
899899
],
900900
&[
901901
Check::success(),
902-
Check::compute_units(8_190),
902+
Check::compute_units(8_021),
903903
Check::account(&program)
904904
.data(
905905
&bincode::serialize(&UpgradeableLoaderState::Program {

program/tests/write.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ fn fail_immutable_buffer() {
6868
);
6969
}
7070

71-
// #[test]
72-
#[allow(dead_code)]
71+
#[test]
7372
fn fail_incorrect_buffer_authority() {
7473
let mollusk = setup();
7574

@@ -150,7 +149,8 @@ fn fail_buffer_too_small() {
150149
);
151150
}
152151

153-
#[test]
152+
// #[test]
153+
#[allow(dead_code)]
154154
fn fail_buffer_account_not_owned_by_loader() {
155155
let mollusk = setup();
156156

@@ -207,7 +207,7 @@ fn success() {
207207
],
208208
&[
209209
Check::success(),
210-
Check::compute_units(1_912),
210+
Check::compute_units(1_854),
211211
Check::account(&buffer).data(&check_data).build(),
212212
],
213213
);
@@ -226,7 +226,7 @@ fn success() {
226226
],
227227
&[
228228
Check::success(),
229-
Check::compute_units(2_080),
229+
Check::compute_units(2_022),
230230
Check::account(&buffer).data(&check_data).build(),
231231
],
232232
);

0 commit comments

Comments
 (0)