Skip to content

Commit

Permalink
Reenable/remove flaky tests (#23506)
Browse files Browse the repository at this point in the history
Fixes #17017 - Ran the test over _one million ~~dollars~~ times_ and it did not fail
Fixes #23505 - Removing based on Smit's analysis and Andriy's agreement
  • Loading branch information
ajcvickers committed Nov 27, 2020
1 parent a819837 commit 42cdfb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public virtual async Task SaveChanges_uses_ambient_transaction(bool async, bool
AssertStoreInitialState();
}

[ConditionalTheory(Skip = "Issue #17017")]
[ConditionalTheory]
[InlineData(true, true)]
[InlineData(true, false)]
[InlineData(false, true)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,41 +98,6 @@ public override void Lifting_when_subquery_nested_order_by_simple()
ORDER BY [t0].[CustomerID]");
}

[ConditionalFact(Skip = "Issue #16006")]
public virtual void Cache_key_contexts_are_detached()
{
var weakRef = Scoper(
() =>
{
var context = new NorthwindRelationalContext(Fixture.CreateOptions());
var wr = new WeakReference(context);
using (context)
{
var orderDetails = context.OrderDetails;
Customer Query(NorthwindContext param)
=> (from c in context.Customers
from o in context.Set<Order>()
from od in orderDetails
from e1 in param.Employees
from e2 in param.Set<Order>()
select c).First();
Assert.NotNull(Query(context));
Assert.True(wr.IsAlive);
return wr;
}
});

GC.Collect();

Assert.False(weakRef.IsAlive);
}

private static T Scoper<T>(Func<T> getter)
{
return getter();
Expand Down

0 comments on commit 42cdfb8

Please sign in to comment.