Skip to content

Commit 7e5f0fd

Browse files
committed
use real Spaces in non test builds
1 parent 450fbe3 commit 7e5f0fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pallets/roles/src/mock.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ parameter_types! {
116116
impl Config for Test {
117117
type Event = Event;
118118
type MaxUsersToProcessPerDeleteRole = MaxUsersToProcessPerDeleteRole;
119+
#[cfg(test)]
120+
type SpacePermissionsProvider = Spaces;
121+
#[cfg(not(test))]
119122
type SpacePermissionsProvider = Self;
120123
type SpaceFollows = Roles;
121124
type IsAccountBlocked = ();

0 commit comments

Comments
 (0)