Skip to content

Commit

Permalink
Fix flaky sendOrgAdminEmailCSV test (#8427)
Browse files Browse the repository at this point in the history
  • Loading branch information
emyl3 authored Jan 22, 2025
1 parent 001da1e commit dacde93
Showing 1 changed file with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import gov.cdc.usds.simplereport.api.model.errors.IllegalGraphqlArgumentException;
import gov.cdc.usds.simplereport.api.model.errors.OrderingProviderRequiredException;
import gov.cdc.usds.simplereport.config.FeatureFlagsConfig;
import gov.cdc.usds.simplereport.config.simplereport.DemoUserConfiguration;
import gov.cdc.usds.simplereport.db.model.DeviceType;
import gov.cdc.usds.simplereport.db.model.Facility;
import gov.cdc.usds.simplereport.db.model.Organization;
Expand All @@ -34,7 +33,6 @@
import gov.cdc.usds.simplereport.db.repository.OrganizationRepository;
import gov.cdc.usds.simplereport.db.repository.PatientRegistrationLinkRepository;
import gov.cdc.usds.simplereport.db.repository.PersonRepository;
import gov.cdc.usds.simplereport.db.repository.ProviderRepository;
import gov.cdc.usds.simplereport.idp.repository.OktaRepository;
import gov.cdc.usds.simplereport.service.email.EmailService;
import gov.cdc.usds.simplereport.test_util.SliceTestConfiguration.WithSimpleReportOrgAdminUser;
Expand All @@ -61,17 +59,15 @@
class OrganizationServiceTest extends BaseServiceTest<OrganizationService> {

@Autowired private PatientRegistrationLinkRepository patientRegistrationLinkRepository;
@Autowired @SpyBean private FacilityRepository facilityRepository;
@Autowired @SpyBean private OrganizationRepository organizationRepository;
@SpyBean private FacilityRepository facilityRepository;
@SpyBean private OrganizationRepository organizationRepository;
@Autowired private DeviceTypeRepository deviceTypeRepository;
@Autowired @SpyBean private OktaRepository oktaRepository;
@Autowired @SpyBean private PersonRepository personRepository;
@Autowired @SpyBean private ProviderRepository providerRepository;
@SpyBean private OktaRepository oktaRepository;
@SpyBean private PersonRepository personRepository;
@Autowired ApiUserRepository _apiUserRepo;
@Autowired private DemoUserConfiguration userConfiguration;
@Autowired @SpyBean private EmailService emailService;
@Autowired @SpyBean private DbAuthorizationService dbAuthorizationService;
@Autowired @MockBean private FeatureFlagsConfig featureFlagsConfig;
@MockBean private EmailService emailService;
@SpyBean private DbAuthorizationService dbAuthorizationService;
@MockBean private FeatureFlagsConfig featureFlagsConfig;

@BeforeEach
void setupData() {
Expand Down

0 comments on commit dacde93

Please sign in to comment.