Skip to content

Commit

Permalink
Fix failing tests (#32164)
Browse files Browse the repository at this point in the history
* Fix failing tests

* fixup! Fix failing tests

Hmm, is there some non-determinism here?
  • Loading branch information
bricelam authored Oct 26, 2023
1 parent f8d153e commit d4fd971
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2299,7 +2299,7 @@ void RunInitialization()
}

model.Customize();
_instance = model;
_instance = (SpatialTypesContextModel)model.FinalizeModel();
}

private static SpatialTypesContextModel _instance;
Expand Down Expand Up @@ -2329,6 +2329,11 @@ namespace TestNamespace
{
public partial class SpatialTypesContextModel
{
private SpatialTypesContextModel()
: base(skipDetectChanges: false, modelId: new Guid("00000000-0000-0000-0000-000000000000"), entityTypeCount: 1)
{
}

partial void Initialize()
{
var spatialTypes = SpatialTypesEntityType.Create(this);
Expand Down Expand Up @@ -2417,7 +2422,9 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
var runtimeEntityType = model.AddEntityType(
"Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpRuntimeModelCodeGeneratorTest+SpatialTypes",
typeof(CSharpRuntimeModelCodeGeneratorTest.SpatialTypes),
baseEntityType);
baseEntityType,
propertyCount: 2,
keyCount: 1);

var id = runtimeEntityType.AddProperty(
"Id",
Expand Down Expand Up @@ -16011,7 +16018,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
baseEntityType,
discriminatorValue: "PrincipalBase",
derivedTypesCount: 1,
propertyCount: 15,
propertyCount: 14,
navigationCount: 1,
skipNavigationCount: 1,
unnamedIndexCount: 1,
Expand Down Expand Up @@ -31821,7 +31828,7 @@ public static RuntimeEntityType Create(RuntimeModel model, RuntimeEntityType bas
discriminatorProperty: "Discriminator",
discriminatorValue: "PrincipalBase",
derivedTypesCount: 1,
propertyCount: 16,
propertyCount: 15,
navigationCount: 1,
skipNavigationCount: 1,
unnamedIndexCount: 1,
Expand Down

0 comments on commit d4fd971

Please sign in to comment.