Skip to content

Conversation

@dibarbet
Copy link
Member

@dibarbet dibarbet commented Aug 5, 2025

Retry logic broke when we updated the test runner. This caused tests that failed to never get reported as failed if they were retried.

Fix was made in the extension testing library, also updated tests to fix new failures.

@dibarbet dibarbet force-pushed the test_test_failure branch 4 times, most recently from d13c6ff to 6fede59 Compare August 11, 2025 22:21
private void LoadLanguageClient()
{
using var token = _asynchronousOperationListener.BeginAsyncOperation(nameof(LoadLanguageClient));
var token = _asynchronousOperationListener.BeginAsyncOperation(nameof(LoadLanguageClient));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes double dispose exception I saw debugging the integration tests

@dibarbet dibarbet changed the title [do not merge] test failure Reenable/Fix integration test reporting Aug 12, 2025
@dibarbet dibarbet marked this pull request as ready for review August 12, 2025 20:51
@dibarbet dibarbet requested review from a team as code owners August 12, 2025 20:51
await TestServices.Shell.ExecuteCommandAsync(VSConstants.VSStd2KCmdID.ToggleConsumeFirstCompletionMode, cancellationToken);
if (await IsUseSuggestionModeOnAsync(forDebuggerTextView, cancellationToken) != value)
await UpdateUseSuggestionModeAsync();
var useSuggestionMode = await IsUseSuggestionModeOnAsync(forDebuggerTextView, cancellationToken);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These test started failing to set the option when resetting options between tests. Talked to the editor - the olecommand version only works with an active text view which we may not have at that point.

Instead we can just use the editor API to set the option, like we do when we read it.

@dibarbet dibarbet merged commit 2ad85b9 into dotnet:main Aug 12, 2025
28 checks passed
@dibarbet dibarbet deleted the test_test_failure branch August 12, 2025 20:56
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Aug 12, 2025
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants