File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Orm/Xtensive.Orm.Tests/Upgrade/EntitySetUpgrade Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class UpgradeTest
1919 [ SetUp ]
2020 public void SetUp ( )
2121 {
22- using ( BuildDomain ( "1" , DomainUpgradeMode . Recreate ) )
22+ using ( var domain = BuildDomain ( "1" , DomainUpgradeMode . Recreate ) )
2323 using ( var session = domain . OpenSession ( ) ) {
2424 using ( var tx = session . OpenTransaction ( ) ) {
2525 var person = new M1 . Person ( ) ;
@@ -36,7 +36,7 @@ public void SetUp()
3636 [ IgnoreOnGithubActionsIfFailed ( StorageProvider . Firebird ) ]
3737 public void UpgradeToVersion2Test ( )
3838 {
39- using ( BuildDomain ( "2" , DomainUpgradeMode . Perform ) )
39+ using ( var domain = BuildDomain ( "2" , DomainUpgradeMode . Perform ) )
4040 using ( var session = domain . OpenSession ( ) ) {
4141 using ( session . OpenTransaction ( ) ) {
4242 Assert . AreEqual ( 1 , session . Query . All < M2 . Person > ( ) . Count ( ) ) ;
You can’t perform that action at this time.
0 commit comments