Skip to content

Commit ee94c11

Browse files
committed
Make sure project name is unique in tests, some tests were failing for seed:29088 because the first project that we use in assertations alot was later overwritten
1 parent a8696e2 commit ee94c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tests/Framework/MockData/Project.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class Project
3838
public static Faker<Project> Generator { get; } =
3939
new Faker<Project>()
4040
.UseSeed(TestClient.Configuration.Seed)
41-
.RuleFor(p => p.Name, f => f.Person.Company.Name)
41+
.RuleFor(p => p.Name, f => f.Person.Company.Name + f.UniqueIndex.ToString())
4242
.RuleFor(p => p.Description, f => f.Lorem.Paragraphs(3))
4343
.RuleFor(p => p.State, f => f.PickRandom<StateOfBeing>())
4444
.RuleFor(p => p.Visibility, f => f.PickRandom<Visibility>())

0 commit comments

Comments
 (0)