These are chat archives for WP-API/node-wpapi

19th
Oct 2018
Mike Hingley
@computamike
Oct 19 2018 12:10
Hi - i've just downloaded the wpapi code, and tried running the integration tests. I've noticed that the integration tests are timing out (2 second time out). I'm running a chassis WPAPI server - as per the instructions, and I'm struggling to figure out why that would time out. I'm guessing it's something to do with my configuration (macbook with ssd) but I can't figure out what it could be. Maybe IP Resolution? Anyone else experienced similar issues?
Mike Hingley
@computamike
Oct 19 2018 12:25
Here’s a single test with a timeout set to 0 that takes quite a long time to run :
Mike Hingley
@computamike
Oct 19 2018 15:48
best way to go is to add timeout 0 to the npm call - this removes timeouts.
Mike Hingley
@computamike
Oct 19 2018 15:56
So - once I’ve set up the wordpress test environment, do i need to seed it with content? Because it’s all empty. Am I missing a step somewhere?
Mike Hingley
@computamike
Oct 19 2018 16:43
in other news - i’ve found out why my server was running so slowly - which is good - it just means that my integration tests now fail faster due to missing data.