Skip to content

Commit 22f379a

Browse files
committedMar 25, 2025··
fix(test): try to fix random failing test from auditing
1 parent 8e50b6b commit 22f379a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎security/src/test/java/com/orientechnologies/security/auditing/AuditingChangePasswordTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public void changePasswordTest() throws Exception {
3535
.command("update OUser set password = ? where name = ?", new Object[] {"foo", "reader"})
3636
.close();
3737

38+
Thread.sleep(100);
3839
List<OResult> results =
3940
server
4041
.getSystemDatabase()
@@ -46,7 +47,6 @@ public void changePasswordTest() throws Exception {
4647
}
4748
});
4849

49-
Thread.sleep(100);
5050
Assert.assertEquals(1, results.size());
5151

5252
OResult result = results.get(0);

‎security/src/test/java/com/orientechnologies/security/auditing/AuditingRetentionConfigTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public void retentionGeneral() throws Exception {
3838
.command("update OUser set password = ? where name = ?", new Object[] {"foo", "reader"})
3939
.close();
4040

41+
Thread.sleep(100);
4142
List<OResult> results =
4243
server
4344
.getSystemDatabase()
@@ -48,7 +49,6 @@ public void retentionGeneral() throws Exception {
4849
}
4950
});
5051

51-
Thread.sleep(100);
5252
Assert.assertTrue(results.size() >= 1);
5353

5454
ODefaultAuditing auditing = (ODefaultAuditing) server.getSecurity().getAuditing();

0 commit comments

Comments
 (0)
Please sign in to comment.