@@ -665,60 +665,6 @@ contract KlerosCore_ExecutionTest is KlerosCore_TestBase {
665665 assertEq (ruled, true , "Should be ruled " );
666666 }
667667
668- function test_executeRuling_arbitrableRevert () public {
669- MaliciousArbitrableMock maliciousArbitrable = new MaliciousArbitrableMock (
670- core,
671- templateData,
672- templateDataMappings,
673- arbitratorExtraData,
674- registry,
675- feeToken
676- );
677- uint256 disputeID = 0 ;
678-
679- vm.prank (staker1);
680- core.setStake (GENERAL_COURT, 20000 );
681- vm.prank (disputer);
682- maliciousArbitrable.createDispute {value: feeForJuror * DEFAULT_NB_OF_JURORS}("Action " );
683- vm.warp (block .timestamp + minStakingTime);
684- sortitionModule.passPhase (); // Generating
685- vm.warp (block .timestamp + rngLookahead);
686- sortitionModule.passPhase (); // Drawing phase
687-
688- core.draw (disputeID, DEFAULT_NB_OF_JURORS);
689- vm.warp (block .timestamp + timesPerPeriod[0 ]);
690- core.passPeriod (disputeID); // Vote
691-
692- uint256 [] memory voteIDs = new uint256 [](3 );
693- voteIDs[0 ] = 0 ;
694- voteIDs[1 ] = 1 ;
695- voteIDs[2 ] = 2 ;
696-
697- vm.prank (staker1);
698- disputeKit.castVote (disputeID, voteIDs, 2 , 0 , "XYZ " );
699- core.passPeriod (disputeID); // Appeal
700-
701- vm.warp (block .timestamp + timesPerPeriod[3 ]);
702- core.passPeriod (disputeID); // Execution
703-
704- core.executeRuling (disputeID);
705-
706- (, , , bool ruled , ) = core.disputes (disputeID);
707- assertEq (ruled, true , "Should be ruled " );
708-
709- (bool isRuled , , ) = maliciousArbitrable.disputes (disputeID);
710- assertEq (isRuled, false , "Should be false " );
711-
712- vm.expectRevert (KlerosCore.RulingAlreadyExecuted.selector );
713- core.executeRuling (disputeID);
714-
715- maliciousArbitrable.changeBehaviour (false );
716-
717- // If the first revert was accidental arbitrable will be locked out.
718- vm.expectRevert (KlerosCore.RulingAlreadyExecuted.selector );
719- core.executeRuling (disputeID);
720- }
721-
722668 function test_executeRuling_appealSwitch () public {
723669 // Check that the ruling switches if only one side was funded
724670 uint256 disputeID = 0 ;
0 commit comments