Skip to content

Commit

Permalink
Set transmission interval large so it doesn't run when tests are
Browse files Browse the repository at this point in the history
running.

Unless a test configures it to explicitly.
  • Loading branch information
bseeger committed May 13, 2024
1 parent b01fb8f commit e0bfaef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/resources/application-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ spring:
jdbc:
initialize-schema: always
transmission:
transmission-rate-seconds: 5
transmission-initial-delay-seconds: 2
# keep these large so transmissions do not run during testing
transmission-rate-seconds: 10000
transmission-initial-delay-seconds: 10000
email-recipients:
baltimore-county: [email protected]
queen-annes-county: [email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,14 @@

@Slf4j
@ActiveProfiles("test")
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
@TestInstance(Lifecycle.PER_CLASS)
@TestMethodOrder(OrderAnnotation.class)
@SpringBootTest(
properties = {
"transmission.transmission-rate-seconds=5",
"transmission.transmission-initial-delay-seconds=2"
},
webEnvironment = WebEnvironment.RANDOM_PORT)
public class TransmissionCommandsTest {

@MockBean
Expand Down

0 comments on commit e0bfaef

Please sign in to comment.