Skip to content

Commit

Permalink
fix (tests-suite): increase the timeouts of FirmwareInstallerTestbed.…
Browse files Browse the repository at this point in the history
…InstallAsync.ShouldThrowFirmwareInstallationTimeoutException_GivenTooSmallTimeout()

   this was done to deal with phantom test-failures that are probably caused by the fact that the new event-firing
   mechanism takes a bit too long to initialize the first time it gets involved
  • Loading branch information
ksidirop-laerdal committed Jan 27, 2025
1 parent c71f940 commit 1e8e9a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public async Task InstallAsync_ShouldThrowFirmwareInstallationTimeoutException_G
hostDeviceModel: "foobar",
hostDeviceManufacturer: "acme corp.",

timeoutInMs: 100,
timeoutInMs: 500,
maxTriesCount: 1
));

Expand Down Expand Up @@ -88,7 +88,7 @@ public override EFirmwareInstallationVerdict BeginInstallation(
await Task.Delay(10);
StateChangedAdvertisement(oldState: EFirmwareInstallationState.Idle, newState: EFirmwareInstallationState.Uploading);

await Task.Delay(1_000);
await Task.Delay(2_000);
StateChangedAdvertisement(oldState: EFirmwareInstallationState.Uploading, newState: EFirmwareInstallationState.Complete);
});

Expand Down

0 comments on commit 1e8e9a1

Please sign in to comment.