File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ public async Task CanLoadExpiredBadSsl()
127127 [ Fact ]
128128 public void BrowserRefCountDecrementedOnDispose ( )
129129 {
130+ var currentCount = BrowserRefCounter . Instance . Count ;
131+
130132 var manualResetEvent = new ManualResetEvent ( false ) ;
131133
132134 var browser = new ChromiumWebBrowser ( "https://google.com" ) ;
@@ -141,12 +143,10 @@ public void BrowserRefCountDecrementedOnDispose()
141143 manualResetEvent . WaitOne ( ) ;
142144
143145 //TODO: Refactor this so reference is injected into browser
144- Assert . Equal ( 1 , BrowserRefCounter . Instance . Count ) ;
146+ Assert . Equal ( currentCount + 1 , BrowserRefCounter . Instance . Count ) ;
145147
146148 browser . Dispose ( ) ;
147149
148- Assert . True ( BrowserRefCounter . Instance . Count <= 1 ) ;
149-
150150 Cef . WaitForBrowsersToClose ( ) ;
151151
152152 Assert . Equal ( 0 , BrowserRefCounter . Instance . Count ) ;
You can’t perform that action at this time.
0 commit comments