Skip to content

Commit

Permalink
fix: minor fix in update step and test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Oct 23, 2023
1 parent fa2eac6 commit 2bd935d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private boolean isRecordInstanceOf(Object iRecord, String orientClass) {
return false;
}
ODocument record = ((OIdentifiable) iRecord).getRecord();
if (iRecord == null) {
if (record == null) {
return false;
}
return (ODocumentInternal.getImmutableSchemaClass(record).isSubClassOf(orientClass));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void testPoolDoubleClose() {
new ODatabasePool(orientDb, "test", "admin", OCreateDatabaseUtil.NEW_ADMIN_PASSWORD);
ODatabaseDocument db = pool.acquire();
db.close();
db.close();
pool.close();
orientDb.close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ public void testInvalidatePoolCache() {

poolAdmin1 = orientDB.cachedPool("testdb", "admin", OCreateDatabaseUtil.NEW_ADMIN_PASSWORD);
assertNotEquals(poolAdmin2, poolAdmin1);
orientDB.close();
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void testPoolDoubleClose() {
ODatabasePool pool = new ODatabasePool(orientDb, "test", "admin", "admin");
ODatabaseDocument db = pool.acquire();
db.close();
db.close();
pool.close();
orientDb.close();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public void run() {
t.join();
}
Assert.assertEquals(0, failures.get());
pool.close();
}

@After
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public void run() {
t.join();
}
Assert.assertEquals(0, failures.get());
pool.close();
}

@After
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ public void itShouldNotFailWithRoundRobin() {
} catch (OTokenSecurityException e) {
Assert.fail("It should get the expire exception");
}
pool.close();
}

@After
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,6 @@ public void test() {
Assert.fail();
}
}
orient.close();
}
}

0 comments on commit 2bd935d

Please sign in to comment.