Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 595e6d7

Browse files
committed
Remove Invalid Test Case
User can have a moderator info and not be a moderator
1 parent 437d620 commit 595e6d7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

repo/profile_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -358,22 +358,6 @@ func TestProfileInvalidAsModeratorWithoutInfo(t *testing.T) {
358358
}
359359
}
360360

361-
func TestProfileInvalidAsUserWithModeratorInfo(t *testing.T) {
362-
p := factory.NewProfile()
363-
p.Moderator = false
364-
p.ModeratorInfo = &repo.ModeratorInfo{
365-
Fee: &repo.ModeratorFee{
366-
FeeType: pb.Moderator_Fee_PERCENTAGE.String(),
367-
Percentage: 1.1,
368-
FixedFee: nil,
369-
},
370-
}
371-
372-
if err := p.Valid(); err == nil {
373-
t.Errorf("expected regular user with moderator info to be invalid")
374-
}
375-
}
376-
377361
func TestProfileSetModeratorFixedFee(t *testing.T) {
378362
p := factory.NewProfile()
379363
p.ModeratorInfo.Fee.FeeType = pb.Moderator_Fee_FIXED_PLUS_PERCENTAGE.String()

0 commit comments

Comments
 (0)