Skip to content

Commit 7a30947

Browse files
committed
adjust CUs in tests
1 parent d015f7b commit 7a30947

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

program/tests/functional.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fn test_process_create_ok() {
8383
&[(config, config_account)],
8484
&[
8585
Check::success(),
86-
Check::compute_units(581),
86+
Check::compute_units(584),
8787
Check::account(&config)
8888
.data(
8989
&bincode::serialize(&(ConfigKeys { keys: vec![] }, MyConfig::default()))
@@ -111,7 +111,7 @@ fn test_process_store_ok() {
111111
&[(config, config_account)],
112112
&[
113113
Check::success(),
114-
Check::compute_units(581),
114+
Check::compute_units(584),
115115
Check::account(&config)
116116
.data(&bincode::serialize(&(ConfigKeys { keys }, my_config)).unwrap())
117117
.build(),
@@ -186,7 +186,7 @@ fn test_process_store_with_additional_signers() {
186186
],
187187
&[
188188
Check::success(),
189-
Check::compute_units(3_228),
189+
Check::compute_units(3_253),
190190
Check::account(&config)
191191
.data(&bincode::serialize(&(ConfigKeys { keys }, my_config)).unwrap())
192192
.build(),
@@ -285,7 +285,7 @@ fn test_config_updates() {
285285
(signer0, AccountSharedData::default()),
286286
(signer1, AccountSharedData::default()),
287287
],
288-
&[Check::success(), Check::compute_units(3_228)],
288+
&[Check::success(), Check::compute_units(3_253)],
289289
);
290290

291291
// Use this for next invoke.
@@ -303,7 +303,7 @@ fn test_config_updates() {
303303
],
304304
&[
305305
Check::success(),
306-
Check::compute_units(3_229),
306+
Check::compute_units(3_254),
307307
Check::account(&config)
308308
.data(&bincode::serialize(&(ConfigKeys { keys }, new_config)).unwrap())
309309
.build(),
@@ -399,7 +399,7 @@ fn test_config_update_contains_duplicates_fails() {
399399
(signer0, AccountSharedData::default()),
400400
(signer1, AccountSharedData::default()),
401401
],
402-
&[Check::success(), Check::compute_units(3_228)],
402+
&[Check::success(), Check::compute_units(3_253)],
403403
);
404404

405405
// Attempt update with duplicate signer inputs.
@@ -443,7 +443,7 @@ fn test_config_updates_requiring_config() {
443443
],
444444
&[
445445
Check::success(),
446-
Check::compute_units(3_324),
446+
Check::compute_units(3_352),
447447
Check::account(&config)
448448
.data(&bincode::serialize(&(ConfigKeys { keys: keys.clone() }, my_config)).unwrap())
449449
.build(),
@@ -464,7 +464,7 @@ fn test_config_updates_requiring_config() {
464464
],
465465
&[
466466
Check::success(),
467-
Check::compute_units(3_324),
467+
Check::compute_units(3_352),
468468
Check::account(&config)
469469
.data(&bincode::serialize(&(ConfigKeys { keys }, new_config)).unwrap())
470470
.build(),
@@ -558,7 +558,7 @@ fn test_maximum_keys_input() {
558558
let result = mollusk.process_and_validate_instruction(
559559
&instruction,
560560
&[(config, config_account)],
561-
&[Check::success(), Check::compute_units(25_020)],
561+
&[Check::success(), Check::compute_units(25_247)],
562562
);
563563

564564
// Use this for next invoke.
@@ -571,7 +571,7 @@ fn test_maximum_keys_input() {
571571
let result = mollusk.process_and_validate_instruction(
572572
&instruction,
573573
&[(config, updated_config_account)],
574-
&[Check::success(), Check::compute_units(25_020)],
574+
&[Check::success(), Check::compute_units(25_247)],
575575
);
576576

577577
// Use this for next invoke.

0 commit comments

Comments
 (0)