File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,11 @@ public DependencyGraphGeneratorTests()
2222 [ Fact ]
2323 public async Task generate_graph_with_valid_dependencies_creates_dot_file ( )
2424 {
25+ var testDirectory = _testDirectory ;
26+ string fileName = "testgraph.dot" ;
2527 using ( var sw = new StringWriter ( ) )
2628 {
27- var testDirectory = _testDirectory ;
28- string fileName = "testgraph.dot" ;
29+
2930 // Arrange
3031 var dependencies = new List < DependencyRelation >
3132 {
Original file line number Diff line number Diff line change @@ -61,10 +61,15 @@ protected virtual void Dispose(bool disposing)
6161 {
6262 if ( ! _disposed )
6363 {
64- if ( disposing && Directory . Exists ( _testDirectory ) )
64+ if ( disposing )
6565 {
66- // Dispose managed resources
67- Directory . Delete ( _testDirectory , true ) ;
66+ Task . Delay ( 100 ) . Wait ( ) ;
67+
68+ if ( Directory . Exists ( _testDirectory ) )
69+ {
70+ // Dispose managed resources
71+ Directory . Delete ( _testDirectory , true ) ;
72+ }
6873 }
6974
7075 // Dispose unmanaged resources (if any)
You can’t perform that action at this time.
0 commit comments