From c553aca840ebc18b27136be635d9f86e2f2e760a Mon Sep 17 00:00:00 2001 From: Adam Becker Date: Tue, 2 Feb 2021 00:25:04 +0000 Subject: [PATCH] Fix flaky tests --- tests/Hedgehog.Linq.Tests/LinqTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Hedgehog.Linq.Tests/LinqTests.cs b/tests/Hedgehog.Linq.Tests/LinqTests.cs index f60b7e6f..38534e07 100644 --- a/tests/Hedgehog.Linq.Tests/LinqTests.cs +++ b/tests/Hedgehog.Linq.Tests/LinqTests.cs @@ -81,9 +81,9 @@ from z in ForAll(Gen.Bool) public void CanUseWhereWithAssertion() { var property = - from x in ForAll(Gen.Bool) + from x in ForAll(Gen.FromValue(true)) where x == true - from y in ForAll(Gen.Bool) + from y in ForAll(Gen.FromValue(false)) where y == false select Assert.True(x && !y); @@ -94,9 +94,9 @@ from y in ForAll(Gen.Bool) public void CanUseWhereWithBool() { var property = - from x in ForAll(Gen.Bool) + from x in ForAll(Gen.FromValue(true)) where x == true - from y in ForAll(Gen.Bool) + from y in ForAll(Gen.FromValue(false)) where y == false select x && !y;