fix: test pauser
This commit is contained in:
@@ -219,17 +219,17 @@ contract TychoRouterTest is TychoRouterTestSetup {
|
|||||||
tychoRouter.unpause();
|
tychoRouter.unpause();
|
||||||
assertEq(tychoRouter.paused(), false);
|
assertEq(tychoRouter.paused(), false);
|
||||||
vm.stopPrank();
|
vm.stopPrank();
|
||||||
}
|
|
||||||
|
|
||||||
function testPauseFailures() public {
|
|
||||||
vm.startPrank(BOB);
|
|
||||||
vm.expectRevert();
|
|
||||||
tychoRouter.pause();
|
|
||||||
vm.stopPrank();
|
|
||||||
|
|
||||||
vm.startPrank(UNPAUSER);
|
vm.startPrank(UNPAUSER);
|
||||||
vm.expectRevert();
|
vm.expectRevert();
|
||||||
tychoRouter.unpause();
|
tychoRouter.unpause();
|
||||||
vm.stopPrank();
|
vm.stopPrank();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function testPauseNonRole() public {
|
||||||
|
vm.startPrank(BOB);
|
||||||
|
vm.expectRevert();
|
||||||
|
tychoRouter.pause();
|
||||||
|
vm.stopPrank();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user