Skip to content

Commit

Permalink
allow firefoxGcInterval = 0 to disable
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Jan 23, 2020
1 parent d22de38 commit 19816f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ declare namespace Cypress {
/**
* Firefox only: Get the current number of tests that will run between forced garbage collections.
*
* Returns undefined if not in Firefox, returns a null if forced GC is disabled.
* Returns undefined if not in Firefox, returns a null or 0 if forced GC is disabled.
*
* @see https://on.cypress.io/firefox-gc-issue
*/
Expand Down Expand Up @@ -2243,7 +2243,7 @@ declare namespace Cypress {
/**
* Firefox-only: The number of tests that will run between forced garbage collections.
* If a number is supplied, it will apply to `run` mode and `open` mode.
* Set the interval to `null` to disable forced garbage collections.
* Set the interval to `null` or 0 to disable forced garbage collections.
* @default { runMode: 1, openMode: null }
*/
firefoxGcInterval: Nullable<number | { runMode: Nullable<number>, openMode: Nullable<number> }>
Expand Down
4 changes: 2 additions & 2 deletions packages/server/lib/util/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const isValidBrowserList = (key, browsers) => {
const isValidFirefoxGcInterval = (key, value) => {
const isIntervalValue = (val) => {
if (isNumber(val)) {
return val > 0
return val >= 0
}

return val == null
Expand All @@ -118,7 +118,7 @@ const isValidFirefoxGcInterval = (key, value) => {
return true
}

return errMsg(key, value, 'a positive, non-zero number or null or an object with "openMode" and "runMode" as keys and positive, non-zero numbers or nulls as values')
return errMsg(key, value, 'a positive number or null or an object with "openMode" and "runMode" as keys and positive numbers or nulls as values')
}

module.exports = {
Expand Down

1 comment on commit 19816f7

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 19816f7 Jan 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/3.8.3/linux-x64/circle-issue-1096-firefox-support-19816f75150d775ac4c319294af560f8c94ebf49-235250/cypress.zip
npm install https://cdn.cypress.io/beta/npm/3.8.3/circle-issue-1096-firefox-support-19816f75150d775ac4c319294af560f8c94ebf49-235241/cypress.tgz

Please sign in to comment.