private bool CheckPackageExistInCuratedFeed(string packageName, FeedType feedType) { string curatedFeedUrl = GetCuratedFeedUrl(feedType); var maxAttempts = 10; var interval = 30; bool applied = false; TestOutputHelper.WriteLine("Starting package verification checks ({0} attempts, interval {1} seconds).", maxAttempts, interval); for (int i = 0; i < maxAttempts && applied == false; i++) { TestOutputHelper.WriteLine("[verification attempt {0}]: Waiting {1} seconds before next check...", i, interval); if (i != 0) { Thread.Sleep(interval * 1000); } else { Thread.Sleep(5000); } if (_clientSdkHelper.CheckIfPackageExistsInSource(packageName, curatedFeedUrl)) { applied = true; } } return(applied); }