From 1bff31ca61c88343ba66592675b8b4d93fd7680a Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 06 Feb 2007 19:22:18 +0000
Subject: [PATCH] Update the InternalClientConnection object to make the default constructor private so that all attempts to get a root-authenticated connection should use the InternalClientConnection.getRootConnection() method, which will be more efficient.
---
opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/StressTest.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/StressTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/StressTest.java
index c3731db..65f3eaf 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/StressTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/StressTest.java
@@ -198,7 +198,7 @@
TestCaseUtils.startServer();
// Create an internal connection
- connection = new InternalClientConnection();
+ connection = InternalClientConnection.getRootConnection();
// Disable schema check
schemaCheck = DirectoryServer.checkSchema();
@@ -365,7 +365,7 @@
}
} catch (Exception e)
{}
- finally
+ finally
{
synchronized (this)
{
@@ -383,7 +383,7 @@
{
synchronized (this)
{
- int i = 20;
+ int i = 20;
while ((finished != true) && (i-- >0))
{
try
--
Gitblit v1.10.0