From cf062009159de346c45e10a457e0a82436a05b8b Mon Sep 17 00:00:00 2001 From: Koen Metsu Date: Thu, 14 Nov 2024 16:45:37 +0100 Subject: [PATCH] test: or-2553 refresh index inside wait for non-stale data block --- .../Fixtures/GivenEvents/PublicApiFixture.cs | 3 +-- .../Framework/Customizations/AutoFixtureCustomizations.cs | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/test/AssociationRegistry.Test.Public.Api/Fixtures/GivenEvents/PublicApiFixture.cs b/test/AssociationRegistry.Test.Public.Api/Fixtures/GivenEvents/PublicApiFixture.cs index 7e9e010f1..a538c1d63 100644 --- a/test/AssociationRegistry.Test.Public.Api/Fixtures/GivenEvents/PublicApiFixture.cs +++ b/test/AssociationRegistry.Test.Public.Api/Fixtures/GivenEvents/PublicApiFixture.cs @@ -137,9 +137,8 @@ await retry.ExecuteAsync( async () => { await daemon.WaitForNonStaleData(TimeSpan.FromSeconds(60)); + await ElasticClient.Indices.RefreshAsync(Indices.All); }); - - await ElasticClient.Indices.RefreshAsync(Indices.All); } private static void ConfigureElasticClient(IElasticClient client, string verenigingenIndexName) diff --git a/test/AssociationRegistry.Test/Framework/Customizations/AutoFixtureCustomizations.cs b/test/AssociationRegistry.Test/Framework/Customizations/AutoFixtureCustomizations.cs index 04a95e771..c4772c8d6 100644 --- a/test/AssociationRegistry.Test/Framework/Customizations/AutoFixtureCustomizations.cs +++ b/test/AssociationRegistry.Test/Framework/Customizations/AutoFixtureCustomizations.cs @@ -145,8 +145,6 @@ private static void CustomizeDateOnly(this IFixture fixture) fixture.Customize(composer => composer.FromFactory(DateOnly.FromDateTime)); } - // public static int VCodeNumber - private static int vCode = 10000; private static void CustomizeVCode(this IFixture fixture) {