public static Properties initEnvironment() throws IOException {
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
if (envInited) {
+ try {
+ synchronized (ConfiguredTest.class) {
+ if (l == null) {
+ l = DatabaseConnection.newLink(false);
+ }
+ }
+ } catch (InterruptedException e) {
+ throw new Error(e);
+ }
return generateProps();
}
envInited = true;
DatabaseConnection.init(testProps);
try {
synchronized (ConfiguredTest.class) {
- l = DatabaseConnection.newLink(false);
+ if (l == null) {
+ l = DatabaseConnection.newLink(false);
+ }
}
} catch (InterruptedException e) {
throw new Error(e);