From 56bcd609fd28920606e12a2e99fd93c5decd9ee4 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 17 Mar 2018 13:58:56 +0330 Subject: [PATCH] make ssr tests serial --- test/ssr.test.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/ssr.test.js b/test/ssr.test.js index 650ca2f0d1..5fc6ee3d94 100644 --- a/test/ssr.test.js +++ b/test/ssr.test.js @@ -59,31 +59,31 @@ const uniqueTest = async (t, url) => { return results } -test('unique responses with data()', async t => { +test.serial('unique responses with data()', async t => { await uniqueTest(t, '/data') }) -test('unique responses with component', async t => { +test.serial('unique responses with component', async t => { await uniqueTest(t, '/component') }) -test('unique responses with async components', async t => { +test.serial('unique responses with async components', async t => { await uniqueTest(t, '/asyncComponent') }) -test('unique responses with asyncData()', async t => { +test.serial('unique responses with asyncData()', async t => { await uniqueTest(t, '/asyncData') }) -test('unique responses with store initial state', async t => { +test.serial('unique responses with store initial state', async t => { await uniqueTest(t, '/store') }) -test('unique responses with nuxtServerInit', async t => { +test.serial('unique responses with nuxtServerInit', async t => { await uniqueTest(t, '/store?onServerInit=1') }) -test('unique responses with fetch', async t => { +test.serial('unique responses with fetch', async t => { await uniqueTest(t, '/fetch') }) @@ -109,7 +109,7 @@ const stressTest = async (t, _url, concurrency = 2, steps = 4) => { t.is(statusCodes[200], concurrency * steps) } -test('stress test with asyncData', async t => { +test.serial('stress test with asyncData', async t => { await stressTest(t, '/asyncData') })