Deleting failed truckroll
diff --git a/views/ngXosViews/truckroll/src/js/main.js b/views/ngXosViews/truckroll/src/js/main.js
index 514126e..8f43c35 100644
--- a/views/ngXosViews/truckroll/src/js/main.js
+++ b/views/ngXosViews/truckroll/src/js/main.js
@@ -3,6 +3,7 @@
 angular.module('xos.truckroll', [
   'ngResource',
   'ngCookies',
+  'ngAnimate',
   'ngLodash',
   'ui.router',
   'xos.helpers'
@@ -58,16 +59,16 @@
         Truckroll.get({id: id}).$promise
         .then((testResult) => {
           // if error
-          if(testResult.backend_status.indexOf('2') >= 0 || (testResult.result_code && testResult.result_code.indexOf('2') >= 0)){
-            this.truckroll = angular.copy(testResult);
-            this.loader = false;
-            // not deleting failed test for debugging
-          }
+          // or
           // if is synced
-          else if(testResult.is_synced){
+          if(
+              testResult.backend_status.indexOf('2') >= 0 ||
+              (testResult.result_code && testResult.result_code.indexOf('2') >= 0) ||
+              testResult.is_synced
+            ){
             this.truckroll = angular.copy(testResult);
-            Truckroll.delete({id: id});
             this.loader = false;
+            Truckroll.delete({id: id});
           }
           // else keep polling
           else{