Skip to content

Commit ff9c448

Browse files
dependabot[bot]Copilotbrendandburns
authored
Bump JsonPatch.Net from 3.3.0 to 5.0.2 (#1737)
* Bump JsonPatch.Net from 3.3.0 to 5.0.2 --- updated-dependencies: - dependency-name: JsonPatch.Net dependency-version: 5.0.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix flaky LeaderElection test: increase timeouts and assert they complete Agent-Logs-Url: https://github.com/kubernetes-client/csharp/sessions/b75c8f95-8b40-443b-b822-961eb752dda3 Co-authored-by: brendandburns <5751682+brendandburns@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: brendandburns <5751682+brendandburns@users.noreply.github.com>
1 parent 2fff4cb commit ff9c448

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<PackageVersion Include="BouncyCastle.Cryptography" Version="2.6.2" />
77
<PackageVersion Include="FluentAssertions" Version="8.9.0" />
88
<PackageVersion Include="Fractions" Version="8.3.2" />
9-
<PackageVersion Include="JsonPatch.Net" Version="3.3.0" />
9+
<PackageVersion Include="JsonPatch.Net" Version="5.0.2" />
1010
<PackageVersion Include="MartinCostello.Logging.XUnit" Version="0.6.0" />
1111
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="10.0.7" />
1212
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="10.0.7" />

tests/KubernetesClient.Tests/LeaderElection/LeaderElectionTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public void LeaderElection()
168168
});
169169

170170

171-
lockAStopLeading.WaitOne(TimeSpan.FromSeconds(3));
171+
Assert.True(lockAStopLeading.WaitOne(TimeSpan.FromSeconds(30)), "Timed out waiting for leader A to stop leading");
172172

173173
Task.Run(async () =>
174174
{
@@ -189,8 +189,8 @@ public void LeaderElection()
189189
await leaderElector.RunUntilLeadershipLostAsync().ConfigureAwait(true);
190190
});
191191

192-
testLeaderElectionLatch.Wait(TimeSpan.FromSeconds(15));
193-
electionHistoryCountdown.Wait(TimeSpan.FromSeconds(15));
192+
Assert.True(testLeaderElectionLatch.Wait(TimeSpan.FromSeconds(30)), "Timed out waiting for leader election latch");
193+
Assert.True(electionHistoryCountdown.Wait(TimeSpan.FromSeconds(30)), "Timed out waiting for election history countdown");
194194

195195
Assert.Equal(7, electionHistory.Count);
196196

0 commit comments

Comments
 (0)