-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from EventStore/keep-alives
Keep alives
- Loading branch information
Showing
6 changed files
with
402 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
src/__test__/connection/__snapshots__/keepAlive.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`keepAlive settings should throw if < -1 keepAliveInterval connectionString 1`] = `"Invalid keepAliveInterval \\"-2\\". Please provide a positive integer, or -1 to disable."`; | ||
|
||
exports[`keepAlive settings should throw if < -1 keepAliveInterval constructor 1`] = `"Invalid keepAliveInterval \\"-2\\". Please provide a positive integer, or -1 to disable."`; | ||
|
||
exports[`keepAlive settings should throw if < -1 keepAliveTimeout connectionString 1`] = `"Invalid keepAliveTimeout \\"-100\\". Please provide a positive integer, or -1 to disable."`; | ||
|
||
exports[`keepAlive settings should throw if < -1 keepAliveTimeout constructor 1`] = `"Invalid keepAliveTimeout \\"-100\\". Please provide a positive integer, or -1 to disable."`; | ||
|
||
exports[`keepAlive settings should warn if keepAliveInterval is less than 10_000ms (but more than -1) connectionString 1`] = ` | ||
Array [ | ||
Array [ | ||
"Specified KeepAliveInterval of 0 is less than recommended 10_000 ms.", | ||
], | ||
] | ||
`; | ||
|
||
exports[`keepAlive settings should warn if keepAliveInterval is less than 10_000ms (but more than -1) connectionString 2`] = ` | ||
Array [ | ||
Array [ | ||
"Specified KeepAliveInterval of 1 is less than recommended 10_000 ms.", | ||
], | ||
] | ||
`; | ||
|
||
exports[`keepAlive settings should warn if keepAliveInterval is less than 10_000ms (but more than -1) connectionString 3`] = ` | ||
Array [ | ||
Array [ | ||
"Specified KeepAliveInterval of 10 is less than recommended 10_000 ms.", | ||
], | ||
] | ||
`; | ||
|
||
exports[`keepAlive settings should warn if keepAliveInterval is less than 10_000ms (but more than -1) connectionString 4`] = ` | ||
Array [ | ||
Array [ | ||
"Specified KeepAliveInterval of 1000 is less than recommended 10_000 ms.", | ||
], | ||
] | ||
`; | ||
|
||
exports[`keepAlive settings should warn if keepAliveInterval is less than 10_000ms (but more than -1) connectionString 5`] = ` | ||
Array [ | ||
Array [ | ||
"Specified KeepAliveInterval of 9999 is less than recommended 10_000 ms.", | ||
], | ||
] | ||
`; | ||
|
||
exports[`keepAlive settings should warn if keepAliveInterval is less than 10_000ms (but more than -1) constructor 1`] = ` | ||
Array [ | ||
Array [ | ||
"Specified KeepAliveInterval of 0 is less than recommended 10_000 ms.", | ||
], | ||
] | ||
`; | ||
|
||
exports[`keepAlive settings should warn if keepAliveInterval is less than 10_000ms (but more than -1) constructor 2`] = ` | ||
Array [ | ||
Array [ | ||
"Specified KeepAliveInterval of 1 is less than recommended 10_000 ms.", | ||
], | ||
] | ||
`; | ||
|
||
exports[`keepAlive settings should warn if keepAliveInterval is less than 10_000ms (but more than -1) constructor 3`] = ` | ||
Array [ | ||
Array [ | ||
"Specified KeepAliveInterval of 10 is less than recommended 10_000 ms.", | ||
], | ||
] | ||
`; | ||
|
||
exports[`keepAlive settings should warn if keepAliveInterval is less than 10_000ms (but more than -1) constructor 4`] = ` | ||
Array [ | ||
Array [ | ||
"Specified KeepAliveInterval of 1000 is less than recommended 10_000 ms.", | ||
], | ||
] | ||
`; | ||
|
||
exports[`keepAlive settings should warn if keepAliveInterval is less than 10_000ms (but more than -1) constructor 5`] = ` | ||
Array [ | ||
Array [ | ||
"Specified KeepAliveInterval of 9999 is less than recommended 10_000 ms.", | ||
], | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.