Skip to content

Commit

Permalink
Add failing test for #687 (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
casret authored and sindresorhus committed Jan 3, 2019
1 parent 8341fba commit 5653c1a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/timings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import test from 'ava';
import got from '../source';
import {createServer} from './helpers/server';

let s;

test.before('setup', async () => {
s = await createServer();

s.on('/', (request, response) => {
response.end('ok');
});

await s.listen(s.port);
});

test.after('cleanup', async () => {
await s.close();
});

// #687
test.failing('sensible timings', async t => {
const {timings} = await got(s.url);
t.true(timings.phases.request < 1000);
});

0 comments on commit 5653c1a

Please sign in to comment.