mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-01 02:41:39 -05:00
Removed email sending retrying in test mode
no issue Disables email sending retrying in test mode by default. This is to prevent test timeouts and to make testing more reliable in case where we manually let a batch fail.
This commit is contained in:
parent
bd9b76c5ec
commit
a58396b2de
1 changed files with 9 additions and 0 deletions
|
@ -75,10 +75,19 @@ class BatchSendingService {
|
|||
|
||||
if (BEFORE_RETRY_CONFIG) {
|
||||
this.#BEFORE_RETRY_CONFIG = BEFORE_RETRY_CONFIG;
|
||||
} else {
|
||||
if (process.env.NODE_ENV.startsWith('test')) {
|
||||
this.#BEFORE_RETRY_CONFIG = {maxRetries: 0};
|
||||
}
|
||||
}
|
||||
if (AFTER_RETRY_CONFIG) {
|
||||
this.#AFTER_RETRY_CONFIG = AFTER_RETRY_CONFIG;
|
||||
} else {
|
||||
if (process.env.NODE_ENV.startsWith('test')) {
|
||||
this.#AFTER_RETRY_CONFIG = {maxRetries: 0};
|
||||
}
|
||||
}
|
||||
|
||||
if (MAILGUN_API_RETRY_CONFIG) {
|
||||
this.#MAILGUN_API_RETRY_CONFIG = MAILGUN_API_RETRY_CONFIG;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue