-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Fix cleaning send queue on restart #18511
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,17 +43,17 @@ try { | |
} | ||
|
||
// We use the launchers themselves to figure out if the browser exists. It's a bit sneaky, but it works. | ||
tryAddBrowser("ChromeHeadlessNoSandbox", new ChromeHeadlessBrowser(() => { }, {})); | ||
tryAddBrowser("ChromiumHeadlessIgnoreCert", new ChromiumHeadlessBrowser(() => { }, {})); | ||
if (!tryAddBrowser("FirefoxHeadless", new FirefoxHeadlessBrowser(0, () => { }, {}))) { | ||
tryAddBrowser("FirefoxDeveloperHeadless", new FirefoxDeveloperHeadlessBrowser(0, () => { }, {})); | ||
tryAddBrowser("ChromeHeadlessNoSandbox", ChromeHeadlessBrowser.prototype); | ||
tryAddBrowser("ChromiumHeadlessIgnoreCert", ChromiumHeadlessBrowser.prototype); | ||
if (!tryAddBrowser("FirefoxHeadless", FirefoxHeadlessBrowser.prototype)) { | ||
tryAddBrowser("FirefoxDeveloperHeadless", FirefoxDeveloperHeadlessBrowser.prototype); | ||
} | ||
|
||
// We need to receive an argument from the caller, but globals don't seem to work, so we use an environment variable. | ||
if (process.env.ASPNETCORE_SIGNALR_TEST_ALL_BROWSERS === "true") { | ||
tryAddBrowser("Edge", new EdgeBrowser(() => { }, { create() { } })); | ||
tryAddBrowser("IE", new IEBrowser(() => { }, { create() { } }, {})); | ||
tryAddBrowser("Safari", new SafariBrowser(() => { }, {})); | ||
tryAddBrowser("Edge", EdgeBrowser.prototype); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which edge is this testing? Legacy? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TBH we need to do some work to understand what Karma does locally and what Sauce Labs will do in the cloud. I'll file a bug for that. For now, I'd expect yes, it's Edge Legacy. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
tryAddBrowser("IE", IEBrowser.prototype); | ||
tryAddBrowser("Safari", SafariBrowser.prototype); | ||
} | ||
|
||
module.exports = createKarmaConfig({ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is part of updating the firefox launcher. We shouldn't have been instantiating these classes to check if the browsers exists.