@@ -802,7 +802,7 @@ func TestTaskHandler_NotFoundStatus(t *testing.T) {
802
802
return & platform.Task {ID : taskID , Organization : "o" }, nil
803
803
}
804
804
805
- return nil , backend .ErrTaskNotFound
805
+ return nil , & platform .ErrTaskNotFound
806
806
},
807
807
},
808
808
method : http .MethodGet ,
@@ -818,7 +818,7 @@ func TestTaskHandler_NotFoundStatus(t *testing.T) {
818
818
return & platform.Task {ID : taskID , Organization : "o" }, nil
819
819
}
820
820
821
- return nil , backend .ErrTaskNotFound
821
+ return nil , & platform .ErrTaskNotFound
822
822
},
823
823
},
824
824
method : http .MethodPatch ,
@@ -835,7 +835,7 @@ func TestTaskHandler_NotFoundStatus(t *testing.T) {
835
835
return nil
836
836
}
837
837
838
- return backend .ErrTaskNotFound
838
+ return & platform .ErrTaskNotFound
839
839
},
840
840
},
841
841
method : http .MethodDelete ,
@@ -851,7 +851,7 @@ func TestTaskHandler_NotFoundStatus(t *testing.T) {
851
851
return nil , 0 , nil
852
852
}
853
853
854
- return nil , 0 , backend .ErrTaskNotFound
854
+ return nil , 0 , & platform .ErrTaskNotFound
855
855
},
856
856
},
857
857
method : http .MethodGet ,
@@ -864,10 +864,10 @@ func TestTaskHandler_NotFoundStatus(t *testing.T) {
864
864
svc : & mock.TaskService {
865
865
FindLogsFn : func (_ context.Context , f platform.LogFilter ) ([]* platform.Log , int , error ) {
866
866
if f .Task != taskID {
867
- return nil , 0 , backend .ErrTaskNotFound
867
+ return nil , 0 , & platform .ErrTaskNotFound
868
868
}
869
869
if * f .Run != runID {
870
- return nil , 0 , backend .ErrNoRunsFound
870
+ return nil , 0 , & platform .ErrNoRunsFound
871
871
}
872
872
873
873
return nil , 0 , nil
@@ -883,7 +883,7 @@ func TestTaskHandler_NotFoundStatus(t *testing.T) {
883
883
svc : & mock.TaskService {
884
884
FindRunsFn : func (_ context.Context , f platform.RunFilter ) ([]* platform.Run , int , error ) {
885
885
if f .Task != taskID {
886
- return nil , 0 , backend .ErrTaskNotFound
886
+ return nil , 0 , & platform .ErrTaskNotFound
887
887
}
888
888
889
889
return nil , 0 , nil
@@ -899,7 +899,7 @@ func TestTaskHandler_NotFoundStatus(t *testing.T) {
899
899
svc : & mock.TaskService {
900
900
FindRunsFn : func (_ context.Context , f platform.RunFilter ) ([]* platform.Run , int , error ) {
901
901
if f .Task != taskID {
902
- return nil , 0 , backend .ErrNoRunsFound
902
+ return nil , 0 , & platform .ErrNoRunsFound
903
903
}
904
904
905
905
return nil , 0 , nil
@@ -915,7 +915,7 @@ func TestTaskHandler_NotFoundStatus(t *testing.T) {
915
915
svc : & mock.TaskService {
916
916
ForceRunFn : func (_ context.Context , tid platform.ID , _ int64 ) (* platform.Run , error ) {
917
917
if tid != taskID {
918
- return nil , backend .ErrTaskNotFound
918
+ return nil , & platform .ErrTaskNotFound
919
919
}
920
920
921
921
return & platform.Run {ID : runID , TaskID : taskID , Status : backend .RunScheduled .String ()}, nil
@@ -932,10 +932,10 @@ func TestTaskHandler_NotFoundStatus(t *testing.T) {
932
932
svc : & mock.TaskService {
933
933
FindRunByIDFn : func (_ context.Context , tid , rid platform.ID ) (* platform.Run , error ) {
934
934
if tid != taskID {
935
- return nil , backend .ErrTaskNotFound
935
+ return nil , & platform .ErrTaskNotFound
936
936
}
937
937
if rid != runID {
938
- return nil , backend .ErrRunNotFound
938
+ return nil , & platform .ErrRunNotFound
939
939
}
940
940
941
941
return & platform.Run {ID : runID , TaskID : taskID , Status : backend .RunScheduled .String ()}, nil
@@ -951,10 +951,10 @@ func TestTaskHandler_NotFoundStatus(t *testing.T) {
951
951
svc : & mock.TaskService {
952
952
RetryRunFn : func (_ context.Context , tid , rid platform.ID ) (* platform.Run , error ) {
953
953
if tid != taskID {
954
- return nil , backend .ErrTaskNotFound
954
+ return nil , & platform .ErrTaskNotFound
955
955
}
956
956
if rid != runID {
957
- return nil , backend .ErrRunNotFound
957
+ return nil , & platform .ErrRunNotFound
958
958
}
959
959
960
960
return & platform.Run {ID : runID , TaskID : taskID , Status : backend .RunScheduled .String ()}, nil
@@ -970,10 +970,10 @@ func TestTaskHandler_NotFoundStatus(t *testing.T) {
970
970
svc : & mock.TaskService {
971
971
CancelRunFn : func (_ context.Context , tid , rid platform.ID ) error {
972
972
if tid != taskID {
973
- return backend .ErrTaskNotFound
973
+ return & platform .ErrTaskNotFound
974
974
}
975
975
if rid != runID {
976
- return backend .ErrRunNotFound
976
+ return & platform .ErrRunNotFound
977
977
}
978
978
979
979
return nil
@@ -1444,7 +1444,7 @@ func TestTaskHandler_Sessions(t *testing.T) {
1444
1444
1445
1445
FindTaskByIDFn : func (ctx context.Context , id platform.ID ) (* platform.Task , error ) {
1446
1446
if id != taskID {
1447
- return nil , backend .ErrTaskNotFound
1447
+ return nil , & platform .ErrTaskNotFound
1448
1448
}
1449
1449
1450
1450
return & platform.Task {
@@ -1536,7 +1536,7 @@ func TestTaskHandler_Sessions(t *testing.T) {
1536
1536
1537
1537
FindTaskByIDFn : func (ctx context.Context , id platform.ID ) (* platform.Task , error ) {
1538
1538
if id != taskID {
1539
- return nil , backend .ErrTaskNotFound
1539
+ return nil , & platform .ErrTaskNotFound
1540
1540
}
1541
1541
1542
1542
return & platform.Task {
@@ -1632,7 +1632,7 @@ func TestTaskHandler_Sessions(t *testing.T) {
1632
1632
1633
1633
FindTaskByIDFn : func (ctx context.Context , id platform.ID ) (* platform.Task , error ) {
1634
1634
if id != taskID {
1635
- return nil , backend .ErrTaskNotFound
1635
+ return nil , & platform .ErrTaskNotFound
1636
1636
}
1637
1637
1638
1638
return & platform.Task {
@@ -1727,7 +1727,7 @@ func TestTaskHandler_Sessions(t *testing.T) {
1727
1727
1728
1728
FindTaskByIDFn : func (ctx context.Context , id platform.ID ) (* platform.Task , error ) {
1729
1729
if id != taskID {
1730
- return nil , backend .ErrTaskNotFound
1730
+ return nil , & platform .ErrTaskNotFound
1731
1731
}
1732
1732
1733
1733
return & platform.Task {
0 commit comments