Add @Sandboxed annotation for classes and methods
There are some tests where it is especially hard to make sure that they are not influenced by other tests in the same class. This includes all indexer tests since some of them check the cardinality of a query result, which might change as more entities are added by other tests. Change-Id: I74b40b2e7f95894dd666dcd87d97fd29b2d67c51
This commit is contained in:
@@ -353,7 +353,8 @@ public abstract class AbstractDaemonTest {
|
||||
baseConfig.setString("gerrit", null, "tempSiteDir",
|
||||
tempSiteDir.getRoot().getPath());
|
||||
baseConfig.setInt("receive", null, "changeUpdateThreads", 4);
|
||||
if (classDesc.equals(methodDesc)) {
|
||||
if (classDesc.equals(methodDesc) && !classDesc.sandboxed() &&
|
||||
!methodDesc.sandboxed()) {
|
||||
if (commonServer == null) {
|
||||
commonServer = GerritServer.start(classDesc, baseConfig);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user