diff --git a/integration_tests/handler/0_utils_test.go b/integration_tests/handler/0_utils_test.go index f7a935d7..3dc8608e 100644 --- a/integration_tests/handler/0_utils_test.go +++ b/integration_tests/handler/0_utils_test.go @@ -32,30 +32,11 @@ func injectAPIServer(t *testing.T, c *config.Config, db *gorm.DB) (handler.API, knoqAPI external.KnoqAPI ) - // TODO: 初期リリースではPortalとknoQとは連携しない - if c.IsProduction { - var err error - - // portalAPI, err = external.NewPortalAPI(c.Portal) - // if err != nil { - // return handler.API{}, err - // } - portalAPI = external.NewNopPortalAPI() - - traQAPI, err = external.NewTraQAPI(c.Traq) - if err != nil { - return handler.API{}, err - } + assert.False(t, c.IsProduction) - knoqAPI, err = external.NewKnoqAPI(c.Knoq) - if err != nil { - return handler.API{}, err - } - } else { - portalAPI = mock_external_e2e.NewMockPortalAPI() - traQAPI = mock_external_e2e.NewMockTraQAPI() - knoqAPI = mock_external_e2e.NewMockKnoqAPI() - } + portalAPI = mock_external_e2e.NewMockPortalAPI() + traQAPI = mock_external_e2e.NewMockTraQAPI() + knoqAPI = mock_external_e2e.NewMockKnoqAPI() // repository userRepo := repository.NewUserRepository(db, portalAPI, traQAPI)