Skip to content

Commit ca8f78c

Browse files
committed
unit tests should not ignore range mapping
1 parent d4acecb commit ca8f78c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Tests/Framework/TestClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ private static ConnectionSettings DefaultSettings(ConnectionSettings settings) =
7979
private static IClrTypeMapping<Project> ProjectMapping(ClrTypeMappingDescriptor<Project> m)
8080
{
8181
m.IndexName("project").IdProperty(p => p.Name);
82-
//*_range type only available since 5.2.0
83-
if (VersionUnderTestSatisfiedBy("<5.2.0"))
82+
//*_range type only available since 5.2.0 so we ignore them when running integration tests
83+
if (VersionUnderTestSatisfiedBy("<5.2.0") && Configuration.RunIntegrationTests)
8484
m.Ignore(p => p.Ranges);
8585
return m;
8686
}

src/Tests/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# mode either u (unit test), i (integration test) or m (mixed mode)
2-
mode: i
2+
mode: u
33
# the elasticsearch version that should be started
44
# Can be a snapshot version of sonatype or "latest" to get the latest snapshot of sonatype
55
elasticsearch_version: 5.0.2

0 commit comments

Comments
 (0)