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
Leonardo Di Donato 2019-02-05 23:30:09 +01:00 committed by Leo Di Donato
parent e6bb9e6b97
commit b60ac48f6c
1 changed files with 3 additions and 2 deletions

View File

@ -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{