fix(http): task service should use new task backend also when testing user resource mappings
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>pull/11700/head
parent
e6bb9e6b97
commit
b60ac48f6c
|
@ -808,8 +808,9 @@ func TestTaskUserResourceMap(t *testing.T) {
|
|||
},
|
||||
}
|
||||
|
||||
h := NewTaskHandler(urms, mock.NewLabelService(), zaptest.NewLogger(t), mock.NewUserService())
|
||||
h.OrganizationService = mockOrgService()
|
||||
taskBackend := NewMockTaskBackend()
|
||||
taskBackend.UserResourceMappingService = urms
|
||||
h := NewTaskHandler(taskBackend)
|
||||
taskID := platform.ID(1)
|
||||
|
||||
h.TaskService = &mock.TaskService{
|
||||
|
|
Loading…
Reference in New Issue