Skip to content

Commit 3e2c4d9

Browse files
committed
Don't interfere with failure screenshots with @after
1 parent 9e1c240 commit 3e2c4d9

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

panoramapublic/test/src/org/labkey/test/tests/panoramapublic/PanoramaPublicBaseTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.labkey.test.Locator;
1515
import org.labkey.test.TestFileUtils;
1616
import org.labkey.test.TestTimeoutException;
17+
import org.labkey.test.WebTestHelper;
1718
import org.labkey.test.components.BodyWebPart;
1819
import org.labkey.test.components.SubfoldersWebPart;
1920
import org.labkey.test.components.panoramapublic.TargetedMsExperimentInsertPage;
@@ -113,10 +114,6 @@ public static void initProject()
113114
@After
114115
public void afterTest() throws IOException, CommandException
115116
{
116-
if (isImpersonating())
117-
{
118-
stopImpersonating();
119-
}
120117
verifySymlinks();
121118
}
122119

@@ -149,7 +146,7 @@ private void createPanoramaPublicJournalProject()
149146

150147
boolean verifySymlinks() throws IOException, CommandException
151148
{
152-
Connection connection = createDefaultConnection();
149+
Connection connection = WebTestHelper.getRemoteApiConnection(false);
153150
SimpleGetCommand command = new SimpleGetCommand("PanoramaPublic", "verifySymlinks");
154151
CommandResponse verifyResponse = command.execute(connection, "/");
155152

0 commit comments

Comments
 (0)