File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -873,15 +873,9 @@ impl DatabaseExt for Backend {
873
873
) -> Option < JournaledState > {
874
874
trace ! ( ?id, "revert snapshot" ) ;
875
875
if let Some ( mut snapshot) = self . inner . snapshots . remove ( id) {
876
- // need to check whether DSTest's `failed` variable is set to `true` or if there's a
877
- // global failure which means an error occurred either during the snapshot
876
+ // need to check whether there's a global failure which means an error occurred either during the snapshot
878
877
// or even before
879
- if self
880
- . test_contract_address ( )
881
- . map ( |addr| self . is_failed_test_contract_state ( addr, current_state) )
882
- . unwrap_or_default ( ) ||
883
- self . is_global_failure ( )
884
- {
878
+ if self . is_global_failure ( ) {
885
879
self . inner . has_snapshot_failure . store ( true , Ordering :: Relaxed ) ;
886
880
}
887
881
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ contract TestSetup is Config, DSTest {
19
19
uint256 snapshotId = vm.snapshot ();
20
20
21
21
vm.prank (test);
22
- assertTrue (false , "should have reverted " );
23
22
24
23
vm.revertTo (snapshotId);
25
24
}
You can’t perform that action at this time.
0 commit comments