Skip to content

Investigate TestApiKeys flakiness #734

@Ant-hem

Description

@Ant-hem
  • Algolia Client Version: 6.X
  • Language Version: All

Description

https://github.com/algolia/algoliasearch-client-csharp/blob/master/src/Algolia.Search.Test/EndToEnd/ApiKeys/SecuredApiKeyTest.cs appears to now be flaky with the following error message:

A total of 1 test files matched the specified pattern. ! TestTimeOut X TestApiKeys [2s 125ms] Error Message: Algolia.Search.Exceptions.AlgoliaApiException : {"message":"Key does not exist","status":404} Stack Trace: at Algolia.Search.Transport.HttpTransport.ExecuteRequestAsync[TResult,TData](HttpMethod method, String uri, CallType callType, TData data, RequestOptions requestOptions, CancellationToken ct) in /root/project/src/Algolia.Search/Transport/HttpTransport.cs:line 135 at Algolia.Search.Transport.HttpTransport.ExecuteRequestAsync[TResult](HttpMethod method, String uri, CallType callType, RequestOptions requestOptions, CancellationToken ct) in /root/project/src/Algolia.Search/Transport/HttpTransport.cs:line 78 at Algolia.Search.Clients.SearchClient.GetApiKeyAsync(String apiKey, RequestOptions requestOptions, CancellationToken ct) in /root/project/src/Algolia.Search/Clients/SearchClient.cs:line 258 at Algolia.Search.Test.EndToEnd.Client.ApiKeysTest.TestApiKeys() in /root/project/src/Algolia.Search.Test/EndToEnd/Client/ApiKeysTest.cs:line 96 at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted() at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaitable) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke) at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context) at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context) at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork() ! TestRecommendationClient [118ms]

It's a known issue of the CTS that has been fixed in other clients. See for example Python's client fix.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions