File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tests/bunit.core.tests/Extensions/WaitForHelpers Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -121,17 +121,19 @@ public void Test300()
121121 {
122122 var cut = RenderComponent < ThrowsAfterAsyncOperation > ( ) ;
123123
124+ // Adding additional wait time to deal with tests sometimes failing for timeout on Windows.
124125 Should . Throw < ThrowsAfterAsyncOperation . ThrowsAfterAsyncOperationException > (
125- ( ) => cut . WaitForAssertion ( ( ) => false . ShouldBeTrue ( ) ) ) ;
126+ ( ) => cut . WaitForAssertion ( ( ) => false . ShouldBeTrue ( ) , TimeSpan . FromSeconds ( 5 ) ) ) ;
126127 }
127128
128129 [ Fact ( DisplayName = "WaitForState rethrows unhandled exception from components async operation's methods" ) ]
129130 public void Test301 ( )
130131 {
131132 var cut = RenderComponent < ThrowsAfterAsyncOperation > ( ) ;
132133
134+ // Adding additional wait time to deal with tests sometimes failing for timeout on Windows.
133135 Should . Throw < ThrowsAfterAsyncOperation . ThrowsAfterAsyncOperationException > (
134- ( ) => cut . WaitForState ( ( ) => false ) ) ;
136+ ( ) => cut . WaitForState ( ( ) => false , TimeSpan . FromSeconds ( 5 ) ) ) ;
135137 }
136138
137139 internal class ThrowsAfterAsyncOperation : ComponentBase
You can’t perform that action at this time.
0 commit comments