From f0a7d403122f1144f61d42255ff89b7463fd3b01 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Tue, 10 Sep 2013 14:19:55 +0200 Subject: [PATCH] updated reindex test to include a refresh so they are guaranteed to succeed --- src/Nest.Tests.Integration/Index/ReindexTests.cs | 2 ++ src/Nest.sln | 13 ------------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/Nest.Tests.Integration/Index/ReindexTests.cs b/src/Nest.Tests.Integration/Index/ReindexTests.cs index 4032082812f..fc04d396f4c 100644 --- a/src/Nest.Tests.Integration/Index/ReindexTests.cs +++ b/src/Nest.Tests.Integration/Index/ReindexTests.cs @@ -23,6 +23,7 @@ public void ReindexMinimal() onError: (e) => Assert.Fail(e.Message), completed: () => { + var refresh = this._client.Refresh(new[] { toIndex, ElasticsearchConfiguration.DefaultIndex }); var originalIndexCount = this._client.Count(new[] { ElasticsearchConfiguration.DefaultIndex }, q => q.MatchAll()); var newIndexCount = this._client.Count(new[] { toIndex }, q => q.MatchAll()); Assert.Greater(newIndexCount.Count, 0); @@ -62,6 +63,7 @@ public void Reindex() onError: (e) => Assert.Fail(e.Message), completed: () => { + var refresh = this._client.Refresh(new[] { toIndex, ElasticsearchConfiguration.DefaultIndex }); var originalIndexCount = this._client.Count(new[] { ElasticsearchConfiguration.DefaultIndex }, q=>q.MatchAll()); var newIndexCount = this._client.Count(new[] { toIndex }, q=>q.MatchAll()); Assert.Greater(newIndexCount.Count, 0); diff --git a/src/Nest.sln b/src/Nest.sln index cfb25829c75..5c705fa10c6 100644 --- a/src/Nest.sln +++ b/src/Nest.sln @@ -40,8 +40,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nest.Dsl.Factory", "Nest.Ds EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nest.ProfilerHelper", "Nest.ProfilerHelper\Nest.ProfilerHelper.csproj", "{2727A374-9866-4A9D-9A40-6175334B5992}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{59540309-1B42-4064-AFB4-D31F346D15E6}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -144,16 +142,6 @@ Global {2727A374-9866-4A9D-9A40-6175334B5992}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {2727A374-9866-4A9D-9A40-6175334B5992}.Release|Mixed Platforms.Build.0 = Release|Any CPU {2727A374-9866-4A9D-9A40-6175334B5992}.Release|x86.ActiveCfg = Release|Any CPU - {59540309-1B42-4064-AFB4-D31F346D15E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {59540309-1B42-4064-AFB4-D31F346D15E6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {59540309-1B42-4064-AFB4-D31F346D15E6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {59540309-1B42-4064-AFB4-D31F346D15E6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {59540309-1B42-4064-AFB4-D31F346D15E6}.Debug|x86.ActiveCfg = Debug|Any CPU - {59540309-1B42-4064-AFB4-D31F346D15E6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {59540309-1B42-4064-AFB4-D31F346D15E6}.Release|Any CPU.Build.0 = Release|Any CPU - {59540309-1B42-4064-AFB4-D31F346D15E6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {59540309-1B42-4064-AFB4-D31F346D15E6}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {59540309-1B42-4064-AFB4-D31F346D15E6}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -162,7 +150,6 @@ Global {E39CC264-A7B3-490D-84B2-D3016D86CD87} = {DDC38E1C-13BF-4C96-A3BF-60F14DFC5069} {B9FE4875-0171-40F7-A357-064A93BE09C6} = {DDC38E1C-13BF-4C96-A3BF-60F14DFC5069} {2727A374-9866-4A9D-9A40-6175334B5992} = {DDC38E1C-13BF-4C96-A3BF-60F14DFC5069} - {59540309-1B42-4064-AFB4-D31F346D15E6} = {DDC38E1C-13BF-4C96-A3BF-60F14DFC5069} EndGlobalSection GlobalSection(Performance) = preSolution HasPerformanceSessions = true