Unify httpcall behavior in simulator and real enviroment
@@ -346,9 +346,7 @@ public class RESTFacadeImpl implements RESTFacade {
ResponseEntity<String> rsp;
try {
- if (CoreGlobalProperty.SIMULATORS_ON) {
- rsp = template.exchange(url, HttpMethod.POST, req, String.class, taskUuid, unit.toMillis(timeout), unit.toMillis(timeout));
- } else if (CoreGlobalProperty.UNIT_TEST_ON) {
+ if (CoreGlobalProperty.UNIT_TEST_ON && !CoreGlobalProperty.SIMULATORS_ON) {
rsp = template.exchange(url, HttpMethod.POST, req, String.class);
} else {
rsp = retry.run();
