Skip to content

Commit

Permalink
Fixes an issue with the XmlaTester where each and every request would…
Browse files Browse the repository at this point in the history
… create a new MondrianServer instance and wouldn't clean up after it is done running the test. The test case now uses the same proxy cookie across requests. This is the same strategy used in the MondrianOlap4jTester.

git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@480 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Nov 8, 2011
1 parent a411fbc commit 4c0f311
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testsrc/org/olap4j/XmlaTester.java
Expand Up @@ -27,7 +27,7 @@
public class XmlaTester implements TestContext.Tester {
private final TestContext testContext;
final XmlaOlap4jProxy proxy;
final String cookie;
final static String cookie = XmlaOlap4jDriver.nextCookie();
private Connection connection;

/**
Expand Down Expand Up @@ -72,7 +72,6 @@ public XmlaTester(TestContext testContext)
this.proxy =
(XmlaOlap4jProxy) constructor.newInstance(
catalogNameUrls, urlString);
this.cookie = XmlaOlap4jDriver.nextCookie();
XmlaOlap4jDriver.PROXY_MAP.put(cookie, proxy);
}

Expand Down

0 comments on commit 4c0f311

Please sign in to comment.