From 04ce8dade036642580045a68810744c341a8e4da Mon Sep 17 00:00:00 2001 From: Felix P Date: Thu, 14 Mar 2024 13:56:52 +0100 Subject: [PATCH] Remove buildId from query --- visual-dotnet/SauceLabs.Visual/VisualClient.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/visual-dotnet/SauceLabs.Visual/VisualClient.cs b/visual-dotnet/SauceLabs.Visual/VisualClient.cs index 477a544b..252acc74 100644 --- a/visual-dotnet/SauceLabs.Visual/VisualClient.cs +++ b/visual-dotnet/SauceLabs.Visual/VisualClient.cs @@ -129,10 +129,9 @@ public void Dispose() /// /// VisualResults returns the results of screenshot comparison. /// - /// the id of the build to check. /// a dictionary containing DiffStatus and the number of screenshot in that status. /// - public async Task> VisualResults(string buildId) + public async Task> VisualResults() { var policyOptions = new RetryPolicyOptions { @@ -140,7 +139,7 @@ public async Task> VisualResults(string buildId) 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,