Skip to content

Commit eca8a64

Browse files
committed
Dispose only if necesarilly
1 parent 7e84e87 commit eca8a64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PuppeteerSharp.Tests/WaitTaskTests/FrameWaitForSelectorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public FrameWaitForSelectorTests()
3232

3333
public void Dispose()
3434
{
35-
_pollerInterceptor.Dispose();
35+
_pollerInterceptor?.Dispose();
3636
}
3737

3838
[Test, Retry(2), PuppeteerTest("waittask.spec", "waittask specs Frame.waitForSelector", "should immediately resolve promise if node exists")]

0 commit comments

Comments
 (0)