From 62c72cb58b692b03a0e49349832461f4afeb6099 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 22 Jul 2020 19:49:30 +0100 Subject: [PATCH] Fixed oembed test refs https://github.com/TryGhost/Ghost/commit/e04f55cce36a628c786e58803658d7fe621796f2 - added `nock.cleanAll()` so that there is no inter-test dependencies - the failing test was successfully passing previously due to mocha's retry behaviour eventually exhausting nock request handlers that were set up in other tests and intended not to be called --- test/api-acceptance/admin/oembed_spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/api-acceptance/admin/oembed_spec.js b/test/api-acceptance/admin/oembed_spec.js index f31d6131d0..bcf9db5c71 100644 --- a/test/api-acceptance/admin/oembed_spec.js +++ b/test/api-acceptance/admin/oembed_spec.js @@ -28,6 +28,7 @@ describe('Oembed API', function () { afterEach(function () { sinon.restore(); + nock.cleanAll(); }); it('can fetch an embed', function (done) {