fix bug on SLC execution tests (done by M. Baudier on B. Sinou's laptop)
authorBruno Sinou <bsinou@argeo.org>
Tue, 4 Sep 2012 13:45:24 +0000 (13:45 +0000)
committerBruno Sinou <bsinou@argeo.org>
Tue, 4 Sep 2012 13:45:24 +0000 (13:45 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@5549 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

runtime/org.argeo.slc.support.jcr/src/test/java/org/argeo/slc/jcr/dao/SlcAgentDescriptorDaoJcrTest.java
runtime/org.argeo.slc.support.jcr/src/test/java/org/argeo/slc/jcr/dao/SlcExecutionDaoJcrTest.java

index e1b656deb4913ce29542120d58b60d0a809eaa19..7af87437333f52fcd076831ae9efc65c2d82c354 100644 (file)
@@ -30,13 +30,12 @@ public class SlcAgentDescriptorDaoJcrTest extends AbstractSpringTestCase {
        // .getLog(SlcAgentDescriptorDaoJcrTest.class);
 
        private SlcAgentDescriptorDao slcAgentDescriptorDao;
-       private String host;
+       private String host = "localhost";
 
        @Override
        protected void setUp() throws Exception {
                super.setUp();
                slcAgentDescriptorDao = getBean(SlcAgentDescriptorDao.class);
-               host = InetAddress.getLocalHost().getCanonicalHostName();
        }
 
        public void testZero() throws Exception {
index eaac4eb42e64e373fb49fa644abdbd82497a3395..8bad6475a341779b06963543dd6ceec33302f723 100644 (file)
@@ -36,7 +36,7 @@ public class SlcExecutionDaoJcrTest extends AbstractSpringTestCase {
                super.setUp();
                slcExecutionDao = getBean(SlcExecutionDao.class);
                session = getBean(Session.class);
-               host = InetAddress.getLocalHost().getCanonicalHostName();
+               host = "localhost";
        }
 
        public void testCreate() throws Exception {