File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/NHibernate.Test/NHSpecificTest/GH3030 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public void LinqLeaksMemory()
44
44
new System . Action (
45
45
( ) =>
46
46
{
47
- using var session = OpenSession ( ) ;
47
+ using var session = ( ( DebugSessionFactory ) Sfi ) . ActualFactory . OpenSession ( ) ;
48
48
49
49
var first = new Entity { Id = 1 } ;
50
50
var second = new Entity { Id = 2 } ;
@@ -60,9 +60,9 @@ public void LinqLeaksMemory()
60
60
GC . Collect ( ) ;
61
61
GC . WaitForPendingFinalizers ( ) ;
62
62
63
- Assert . That ( secondReference . Target , Is . Null ) ;
64
- Assert . That ( firstReference . Target , Is . Null ) ;
65
63
Assert . That ( sessionReference . Target , Is . Null ) ;
64
+ Assert . That ( firstReference . Target , Is . Null ) ;
65
+ Assert . That ( secondReference . Target , Is . Null ) ;
66
66
}
67
67
68
68
public class Entity
You can’t perform that action at this time.
0 commit comments