Skip to content

Commit fb769b2

Browse files
committed
Dispose only if necesarilly
1 parent eca8a64 commit fb769b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PuppeteerSharp.Tests/WaitTaskTests/FrameWaitForFunctionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public FrameWaitForFunctionTests() : base()
2929

3030
public void Dispose()
3131
{
32-
_pollerInterceptor.Dispose();
32+
_pollerInterceptor?.Dispose();
3333
}
3434

3535
[Test, Retry(2), PuppeteerTest("waittask.spec", "waittask specs Frame.waitForFunction", "should work when resolved right before execution context disposal")]

0 commit comments

Comments
 (0)