Fix a couple of silly inspections

This commit is contained in:
Dean Herbert 2023-10-20 15:38:00 +09:00
parent d49639bec3
commit f36a671eb4
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ protected void RunTestWithRealm([InstantHandle] Action<RealmAccess, OsuStorage>
Logger.Log($"Running test using realm file {testStorage.GetFullPath(realm.Filename)}");
testAction(realm, testStorage);
// ReSharper disable once DisposeOnUsingVariable
realm.Dispose();
Logger.Log($"Final database size: {getFileSize(testStorage, realm)}");
@ -58,6 +59,7 @@ protected void RunTestWithRealmAsync(Func<RealmAccess, Storage, Task> testAction
Logger.Log($"Running test using realm file {testStorage.GetFullPath(realm.Filename)}");
await testAction(realm, testStorage);
// ReSharper disable once DisposeOnUsingVariable
realm.Dispose();
Logger.Log($"Final database size: {getFileSize(testStorage, realm)}");