Skip to content

Commit

Permalink
Addressed feedback on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KuphJr committed Jul 9, 2024
1 parent 85f887d commit 93d2cf6
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,16 @@ contract FunctionsTermsOfServiceAllowList_GetBlockedSendersInRange is FunctionsR
s_termsOfServiceAllowList.getBlockedSendersInRange(1, BlockedSendersCount + 1);
}

function test_MigratePreviousAllowlist() public {
function test_MigratePreviousAllowlist_RevertIfNotOwner() public {
// Send as stranger
vm.stopPrank();
vm.startPrank(STRANGER_ADDRESS);

vm.expectRevert("Only callable by owner");
s_termsOfServiceAllowList.migratePreviousAllowlist();
}

function test_MigratePreviousAllowlist_Success() public {
address previouslyAllowedSender1 = 0x1000000000000000000000000000000000000000;
address previouslyAllowedSender2 = 0xB000000000000000000000000000000000000000;
address currentlyBlockedSender = 0x2000000000000000000000000000000000000000;
Expand Down

0 comments on commit 93d2cf6

Please sign in to comment.