Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasf/1e935bd089e2ceda68807cc2987e79e7 to your computer and use it in GitHub Desktop.
Save nicholasf/1e935bd089e2ceda68807cc2987e79e7 to your computer and use it in GitHub Desktop.
♪ tcog git:(feature/one-redis-abstraction) ✗ NODE_ENV=regression mocha test/_test.global.js ./test/integration/app-cache-invalidation-endpoint_spec.js
Cache Invalidation
1
article invalidation
[GET] http://api.newsapi.com.au/content/v2/methode/8949faa1675bc73d230a3e5ea2e51c5d?api_key=ttbayy2pngchv75egary59su&bustTime=0&cacheSkip=true&domain=&html=full%2Call&includeDraft=false&includeDynamicMetadata=true&includeRelated=true&maxRelatedLevel=2
Looking locally for /Users/nicholasf/code/news/tcog/test/fixtures/proxy/api.newsapi.com.au/f2672abd157ce28af6b123c42b9c4917.json
Found locally. Serving...
1) Correctly invalidates cache & deletes for previously requested http resource, naturally
0 passing (259ms)
1 failing
1) Cache Invalidation article invalidation Correctly invalidates cache & deletes for previously requested http resource, naturally:
Error: expected 200 "OK", got 500 "Internal Server Error"
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at Server.assert (node_modules/supertest/lib/test.js:127:12)
at emitCloseNT (net.js:1521:8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment