Skip to content

Commit

Permalink
fixing test source file, increasing test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Cully Wakelin committed Mar 20, 2024
1 parent 5f7232c commit 3abc468
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module.exports = {
// setupFiles: [],

// A list of paths to modules that run some code to configure or set up the testing framework before each test
// setupFilesAfterEnv: [],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],

// The number of seconds after which a test is considered as slow and reported as such in the results.
// slowTestThreshold: 5,
Expand Down
1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jest.setTimeout(10000); // 10 seconds
2 changes: 1 addition & 1 deletion test/fixtures/expected-highlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func MoneyTransfer(ctx workflow.Context, input PaymentDetails) (string, error) {
InitialInterval: time.Second,
BackoffCoefficient: 2.0,
MaximumInterval: 100 * time.Second,
MaximumAttempts: 0, // unlimited retries
MaximumAttempts: 500, // 0 is unlimited retries
NonRetryableErrorTypes: []string{"InvalidAccountError", "InsufficientFundsError"},
}

Expand Down

0 comments on commit 3abc468

Please sign in to comment.