Related to issue 38888: Failing SS Build, add info in check for errors
authorMartin Taal <martin.taal@openbravo.com>
Thu, 31 Jan 2019 20:51:25 +0100
changeset 8171 6d6288459bcc
parent 8170 d40817fa00c6
child 8172 4261f9ca6080
Related to issue 38888: Failing SS Build, add info in check for errors
src-test/org/openbravo/test/mobile/retail/multiserver/MultiserverUtils.java
--- a/src-test/org/openbravo/test/mobile/retail/multiserver/MultiserverUtils.java	Thu Jan 31 16:40:09 2019 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/multiserver/MultiserverUtils.java	Thu Jan 31 20:51:25 2019 +0100
@@ -201,13 +201,16 @@
       final ServerType toServerType) {
 
     final String toServerKey = getServerKey(toServerType);
-    final String sqlOutgoing = "select node_id AS count from sym_outgoing_batch where node_id = '"
+    final String sqlOutgoing = "select summary from sym_outgoing_batch where node_id = '"
         + toServerKey + "' and status='ER'";
 
     new DatabaseHelperQuery() {
       @Override
       protected void handleResultSet(final ResultSet rs) throws SQLException {
-        Assert.assertFalse("There are batches in error on " + fromServerType, rs.next());
+        if (rs.next()) {
+          Assert.fail("There are batches in error on " + fromServerType + " summary "
+              + rs.getString(0));
+        }
       }
     }.execute(sqlOutgoing, fromServerType);
   }