sergripenko / port_service

0 stars 0 forks source link

Allow unit tests to run in parallel #2

Open albertogviana opened 1 year ago

albertogviana commented 1 year ago

Could you please amend this code https://github.com/sergripenko/port_service/blob/main/internal/service/port/service_test.go#L12 to allow tests cases (and subcases) to run in parallel? Besides of this, one more thing related to tests. Would it be possible to add one more test case to improve the code coverage?

sergripenko commented 1 year ago

done. also if future we can mock repo layer and cover errors repo.AddPort(), repo.UpdatePort()