Skip to content

Commit 277b43a

Browse files
ajcvickersAndriySvyryd
andauthoredApr 19, 2021
Tiny: Disable failing Cosmos tests (#24689)
* Tiny: Disable failing Cosmos tests * Update test/EFCore.Cosmos.FunctionalTests/BuiltInDataTypesCosmosTest.cs Co-authored-by: Andriy Svyryd <[email protected]> Co-authored-by: Andriy Svyryd <[email protected]>
1 parent 37ac8ec commit 277b43a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

Diff for: ‎test/EFCore.Cosmos.FunctionalTests/BuiltInDataTypesCosmosTest.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public override void Object_to_string_conversion()
6969
base.Object_to_string_conversion();
7070

7171
AssertSql(
72-
@"SELECT c[""TestSignedByte""], c[""TestByte""], c[""TestInt16""], c[""TestUnsignedInt16""], c[""TestInt32""], c[""TestUnsignedInt32""], c[""TestInt64""], c[""TestUnsignedInt64""], c[""TestSingle""], c[""TestDouble""], c[""TestDecimal""], c[""TestCharacter""], c[""TestDateTime""], c[""TestDateTimeOffset""], c[""TestTimeSpan""]
72+
@"SELECT c[""TestSignedByte""], c[""TestByte""], c[""TestInt16""], c[""TestUnsignedInt16""], c[""TestInt32""], c[""TestUnsignedInt32""], c[""TestInt64""], c[""TestUnsignedInt64""], c[""TestSingle""], c[""TestDouble""], c[""TestDecimal""], c[""TestCharacter""], c[""TestDateTime""], c, c[""TestTimeSpan""]
7373
FROM root c
7474
WHERE ((c[""Discriminator""] = ""BuiltInDataTypes"") AND (c[""Id""] = 13))");
7575
}
@@ -117,6 +117,10 @@ protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext con
117117
shadowJObject.SetConfigurationSource(ConfigurationSource.Convention);
118118
var nullableShadowJObject = (Property)modelBuilder.Entity<BuiltInNullableDataTypesShadow>().Property("__jObject").Metadata;
119119
nullableShadowJObject.SetConfigurationSource(ConfigurationSource.Convention);
120+
121+
// Issue #24684
122+
modelBuilder.Entity<BuiltInDataTypes>().Ignore(e => e.TestDateTimeOffset);
123+
modelBuilder.Entity<BuiltInDataTypesShadow>().Ignore("TestDateTimeOffset");
120124
}
121125
}
122126
}

0 commit comments

Comments
 (0)
Please sign in to comment.