Related to issue 38888: Failing SS Build
authorMartin Taal <martin.taal@openbravo.com>
Fri, 16 Nov 2018 08:52:12 +0100
changeset 7875 ef0bf450cb0d
parent 7874 9747eff4ee26
child 7876 5c6e60e1eb0d
Related to issue 38888: Failing SS Build
No need to do rs.next, is already done by caller
src-test/org/openbravo/test/mobile/retail/multiserver/MultiserverOfflineUtils.java
--- a/src-test/org/openbravo/test/mobile/retail/multiserver/MultiserverOfflineUtils.java	Thu Nov 15 23:50:24 2018 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/multiserver/MultiserverOfflineUtils.java	Fri Nov 16 08:52:12 2018 +0100
@@ -96,9 +96,7 @@
         new DatabaseHelperSelect() {
           @Override
           protected void yieldResultSet(final ResultSet rs) throws SQLException {
-            if (rs.next()) {
-              statusVar.set(0, rs.getString(1));
-            }
+            statusVar.set(0, rs.getString(1));
           }
         }.execute(sql, 1, ServerType.STORE1);
         return status.equals(statusVar.get(0));