Skip to content

Commit

Permalink
Remove buildId from query
Browse files Browse the repository at this point in the history
  • Loading branch information
FriggaHel committed Mar 14, 2024
1 parent fbb3cd4 commit 04ce8da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions visual-dotnet/SauceLabs.Visual/VisualClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,17 @@ public void Dispose()
/// <summary>
/// <c>VisualResults</c> returns the results of screenshot comparison.
/// </summary>
/// <param name="buildId">the id of the build to check.</param>
/// <returns>a dictionary containing <c>DiffStatus</c> and the number of screenshot in that status.</returns>
/// <exception cref="VisualClientException"></exception>
public async Task<Dictionary<DiffStatus, int>> VisualResults(string buildId)
public async Task<Dictionary<DiffStatus, int>> VisualResults()
{
var policyOptions = new RetryPolicyOptions
{
EasingFunction = EasingFunction.ExponentialEaseOut,
MaxRetryInterval = TimeSpan.FromSeconds(5),
MaxRetrySteps = 10
};
var result = await Retry.Do(async () => await FetchVisualResults(buildId),
var result = await Retry.Do(async () => await FetchVisualResults(Build.Id),
retryInterval: TimeSpan.FromMilliseconds(100),
retryLimit: 10,
retryPolicy: RetryPolicy.ExponentialBackoff,
Expand Down

0 comments on commit 04ce8da

Please sign in to comment.