Skip to content

Commit

Permalink
Use a new ExportProvider to avoid sharing listeners across tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Feb 13, 2018
1 parent fd528eb commit d57cc19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EditorFeatures/Test/Preview/PreviewWorkspaceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public async Task TestPreviewDiagnosticTagger()
[WpfFact]
public async Task TestPreviewDiagnosticTaggerInPreviewPane()
{
using (var workspace = TestWorkspace.CreateCSharp("class { }", exportProvider: EditorServicesUtil.ExportProvider))
using (var workspace = TestWorkspace.CreateCSharp("class { }", exportProvider: EditorServicesUtil.CreateExportProvider()))
{
// set up listener to wait until diagnostic finish running
var diagnosticService = workspace.ExportProvider.GetExportedValue<IDiagnosticService>();
Expand Down

0 comments on commit d57cc19

Please sign in to comment.