Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVA-3454 updating scheduled time for testing #123

Merged
merged 2 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public ChecksumSetter(ChromosomeService chromosomeService, Md5ChecksumRetriever
this.md5ChecksumRetriever = md5ChecksumRetriever;
}

@Scheduled(cron = "0 0 0 ? * TUE")
@Scheduled(cron = "0 0 1 ? * THU")
public void updateMd5CheckSumForAllAssemblies() {
scheduledToRunMD5ChecksumUpdateTasks = new HashSet<>();
List<String> assemblyList = chromosomeService.getAssembliesWhereChromosomeMd5ChecksumIsNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import uk.ac.ebi.eva.contigalias.entities.ChromosomeEntity;
import uk.ac.ebi.eva.contigalias.entitygenerator.AssemblyGenerator;
import uk.ac.ebi.eva.contigalias.entitygenerator.ChromosomeGenerator;
import uk.ac.ebi.eva.contigalias.repo.ChromosomeRepository;

import java.util.Collections;
import java.util.List;
Expand All @@ -47,14 +48,18 @@ public class ChromosomeServiceIntegrationTest {
@Autowired
private ChromosomeService service;

@Autowired
private ChromosomeRepository chromosomeRepository;

@BeforeEach
void setup() {
chromosomeRepository.deleteAll();
service.insertChromosome(entity);
}

@AfterEach
void tearDown() {
service.deleteChromosome(entity);
chromosomeRepository.deleteAll();
}

@Test
Expand Down
Loading