From 19903a99b5a87e9fb4271c71fefea69e4e8f00ac Mon Sep 17 00:00:00 2001 From: Einar Date: Tue, 16 Jan 2024 12:50:53 +0100 Subject: [PATCH] Bump version (#363) * Bump version * Make token less flaky, maybe. --------- Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> --- ExtractorUtils.Test/unit/CogniteTest.cs | 19 +++++++++++-------- version | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/ExtractorUtils.Test/unit/CogniteTest.cs b/ExtractorUtils.Test/unit/CogniteTest.cs index ba2c4e8b..2242cb8c 100644 --- a/ExtractorUtils.Test/unit/CogniteTest.cs +++ b/ExtractorUtils.Test/unit/CogniteTest.cs @@ -67,11 +67,11 @@ public async Task TestAuthenticator() services.AddSingleton(config.Cognite.IdpAuthentication); services.AddTestLogging(_output); services.AddHttpClient(); - using (var provider = services.BuildServiceProvider()) { + using (var provider = services.BuildServiceProvider()) + { var auth = provider.GetRequiredService(); var token = await auth.GetToken(); Assert.Equal("token0", token); - await Task.Delay(100); token = await auth.GetToken(); // same token Assert.Equal("token0", token); await Task.Delay(2000); // token expired @@ -84,7 +84,7 @@ public async Task TestAuthenticator() // Verify that the authentication endpoint was called 3 times mockHttpMessageHandler.Protected() .Verify>( - "SendAsync", + "SendAsync", Times.Exactly(3), ItExpr.IsAny(), ItExpr.IsAny()); @@ -185,11 +185,13 @@ public async Task TestEnsureTimeSeries(params string[] ids) services.AddConfig(path, 2); services.AddTestLogging(_output); services.AddCogniteClient("testApp"); - using (var provider = services.BuildServiceProvider()) { + using (var provider = services.BuildServiceProvider()) + { var cogniteDestination = provider.GetRequiredService(); - - Func, IEnumerable> createFunction = - (ids) => { + + Func, IEnumerable> createFunction = + (ids) => + { var toCreate = new List(); foreach (var id in ids) { @@ -276,7 +278,8 @@ public async Task TestEnsureAssets(params string[] ids) var cogniteDestination = provider.GetRequiredService(); Func, IEnumerable> createFunction = - (ids) => { + (ids) => + { var toCreate = new List(); foreach (var id in ids) { diff --git a/version b/version index b9a05a6d..84cc5294 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.17.3 +1.18.0