|
2 | 2 |
|
3 | 3 | // Test cache is invalidated when `forge build` if optimize test option toggled.
|
4 | 4 | forgetest_init!(toggle_invalidate_cache_on_build, |prj, cmd| {
|
5 |
| - prj.update_config(|config| { |
6 |
| - config.dynamic_test_linking = true; |
7 |
| - }); |
8 | 5 | // All files are built with optimized tests.
|
9 | 6 | cmd.args(["build"]).with_no_redact().assert_success().stdout_eq(str![[r#"
|
10 | 7 | ...
|
@@ -35,9 +32,6 @@ Compiling 22 files with [..]
|
35 | 32 |
|
36 | 33 | // Test cache is invalidated when `forge test` if optimize test option toggled.
|
37 | 34 | forgetest_init!(toggle_invalidate_cache_on_test, |prj, cmd| {
|
38 |
| - prj.update_config(|config| { |
39 |
| - config.dynamic_test_linking = true; |
40 |
| - }); |
41 | 35 | // All files are built with optimized tests.
|
42 | 36 | cmd.args(["test"]).with_no_redact().assert_success().stdout_eq(str![[r#"
|
43 | 37 | ...
|
@@ -74,9 +68,6 @@ Compiling 20 files with [..]
|
74 | 68 | // └── Counter.t.sol
|
75 | 69 | forgetest_init!(preprocess_contract_with_no_interface, |prj, cmd| {
|
76 | 70 | prj.wipe_contracts();
|
77 |
| - prj.update_config(|config| { |
78 |
| - config.dynamic_test_linking = true; |
79 |
| - }); |
80 | 71 |
|
81 | 72 | prj.add_source(
|
82 | 73 | "Counter.sol",
|
@@ -201,9 +192,6 @@ Compiling 1 files with [..]
|
201 | 192 | // └── Counter.t.sol
|
202 | 193 | forgetest_init!(preprocess_contract_with_interface, |prj, cmd| {
|
203 | 194 | prj.wipe_contracts();
|
204 |
| - prj.update_config(|config| { |
205 |
| - config.dynamic_test_linking = true; |
206 |
| - }); |
207 | 195 |
|
208 | 196 | prj.add_source(
|
209 | 197 | "interface/CounterIf.sol",
|
@@ -341,9 +329,6 @@ Compiling 1 files with [..]
|
341 | 329 | // └── CounterMock.sol
|
342 | 330 | forgetest_init!(preprocess_mock_without_inheritance, |prj, cmd| {
|
343 | 331 | prj.wipe_contracts();
|
344 |
| - prj.update_config(|config| { |
345 |
| - config.dynamic_test_linking = true; |
346 |
| - }); |
347 | 332 |
|
348 | 333 | prj.add_source(
|
349 | 334 | "Counter.sol",
|
@@ -498,9 +483,6 @@ Compiling 2 files with [..]
|
498 | 483 | // └── CounterMock.sol
|
499 | 484 | forgetest_init!(preprocess_mock_with_inheritance, |prj, cmd| {
|
500 | 485 | prj.wipe_contracts();
|
501 |
| - prj.update_config(|config| { |
502 |
| - config.dynamic_test_linking = true; |
503 |
| - }); |
504 | 486 |
|
505 | 487 | prj.add_source(
|
506 | 488 | "Counter.sol",
|
@@ -637,9 +619,6 @@ Compiling 2 files with [..]
|
637 | 619 | // └── CounterMock.sol
|
638 | 620 | forgetest_init!(preprocess_mock_to_non_mock, |prj, cmd| {
|
639 | 621 | prj.wipe_contracts();
|
640 |
| - prj.update_config(|config| { |
641 |
| - config.dynamic_test_linking = true; |
642 |
| - }); |
643 | 622 |
|
644 | 623 | prj.add_source(
|
645 | 624 | "Counter.sol",
|
@@ -752,9 +731,6 @@ Compiling 2 files with [..]
|
752 | 731 | // └── Counter.t.sol
|
753 | 732 | forgetest_init!(preprocess_multiple_contracts_with_constructors, |prj, cmd| {
|
754 | 733 | prj.wipe_contracts();
|
755 |
| - prj.update_config(|config| { |
756 |
| - config.dynamic_test_linking = true; |
757 |
| - }); |
758 | 734 |
|
759 | 735 | prj.add_source(
|
760 | 736 | "Counter.sol",
|
@@ -1019,9 +995,6 @@ Compiling 1 files with [..]
|
1019 | 995 | // Test preprocessing contracts with payable constructor, value and salt named args.
|
1020 | 996 | forgetest_init!(preprocess_contracts_with_payable_constructor_and_salt, |prj, cmd| {
|
1021 | 997 | prj.wipe_contracts();
|
1022 |
| - prj.update_config(|config| { |
1023 |
| - config.dynamic_test_linking = true; |
1024 |
| - }); |
1025 | 998 |
|
1026 | 999 | prj.add_source(
|
1027 | 1000 | "Counter.sol",
|
|
0 commit comments