cd /workspace/wp-calypso && cat > client/state/data-layer/wpcom/comments/test/reproduction.js << 'EOF'
/** @format */
/**
 * Internal dependencies
 */
import {
fetchPostComments,
addComments,
announceFailure,
} from '../';
import {
COMMENTS_RECEIVE,
COMMENTS_COUNT_RECEIVE,
NOTICE_CREATE,
} from 'state/action-types';
import { NUMBER_OF_COMMENTS_PER_FETCH } from 'state/comments/constants';
import { http } from 'state/data-layer/wpcom-http/actions';
import { noRetry } from 'state/data-layer/wpcom-http/pipeline/retry-on-failure/policies';
 describe( 'comments error handling reproduction', () => {
describe( '#fetchPostComments()', () => {

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
test( 'should NOT retry on failure by default', () => {

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
const query = {

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
order: 'DESC',

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
number: NUMBER_OF_COMMENTS_PER_FETCH,

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
status: 'approved',

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtl<response clipped><NOTE>Due to the max output limit, only part of the full response has been shown to you.</NOTE>           docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
};

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
announceFailure( action, undefined )( dispatch, getState );

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
const noticeActions = dispatch.mock.calls.filter(

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
call => call[ 0 ].type === NOTICE_CREATE

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
);

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
expect( noticeActions ).toHaveLength( 1 );

.babelrc.js              .dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  cached-requests.json     config/                  env-config.sh            index.js                 jsconfig.json            npm-shrinkwrap.json      postcss.config.json      renovate.json            test/                    webpack.config.node.js
.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .prettierignore          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  bin/                     client/                  docs/                    greenkeeper.json         inline-imports.js        node_modules/            package.json             public/                  server/                  webpack.config.js
} );
} );
} );
EOF
[The command completed with exit code 0.]
[Current working directory: /workspace/wp-calypso]
[Python interpreter: /usr/bin/python]
[Command finished with exit code 0]