Skip to content

Commit

Permalink
Channel test fix (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppecrj authored Jun 13, 2024
1 parent 307225a commit 726025e
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions contracts/test/spaces/channels/Channels.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ contract ChannelsTest is BaseSetup, IEntitlementBase {
super.setUp();
}

function test_createChannel(string memory channelMetadata) public {
bound(bytes(channelMetadata).length, 3, 1000);

function test_createChannel() public {
bytes32 channelId = "my-cool-channel";
string memory channelMetadata = "Metadata";

vm.prank(founder);
IChannel(everyoneSpace).createChannel(
Expand Down Expand Up @@ -106,10 +105,9 @@ contract ChannelsTest is BaseSetup, IEntitlementBase {
);
}

function test_getChannel(string memory channelMetadata) public {
bound(bytes(channelMetadata).length, 3, 1000);

function test_getChannel() public {
bytes32 channelId = "my-cool-channel";
string memory channelMetadata = "Metadata";

vm.prank(founder);
IChannel(everyoneSpace).createChannel(
Expand All @@ -128,10 +126,9 @@ contract ChannelsTest is BaseSetup, IEntitlementBase {
assertEq(_channel.roleIds.length, 0);
}

function test_getChannel_with_roles(string memory channelMetadata) public {
bound(bytes(channelMetadata).length, 3, 1000);

function test_getChannel_with_roles() public {
bytes32 channelId = "my-cool-channel";
string memory channelMetadata = "Metadata";

vm.prank(founder);
uint256 roleId = IRoles(everyoneSpace).createRole(
Expand All @@ -152,11 +149,9 @@ contract ChannelsTest is BaseSetup, IEntitlementBase {
assertEq(_channel.roleIds.length, roleIds.length);
}

function test_getChannels(
string memory channelMetadata,
bytes32 channelId
) public {
bound(bytes(channelMetadata).length, 3, 1000);
function test_getChannels() public {
bytes32 channelId = "my-cool-channel";
string memory channelMetadata = "Metadata";

vm.prank(founder);
IChannel(everyoneSpace).createChannel(
Expand Down

0 comments on commit 726025e

Please sign in to comment.