Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Mar 9, 2018
1 parent 681dc36 commit b315780
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class CacheV2ResponseProcessorSpec extends Specification {
crp.processResponse(json, groupByQuery, null)

then: "volatile data is cached"
0 * next.getResponseContext() >> responseContext // isCacheable() is not called
0 * next.getResponseContext() >> responseContext
1 * next.processResponse(json, groupByQuery, null)
1 * dataCache.set(*_)
}
Expand All @@ -220,7 +220,7 @@ class CacheV2ResponseProcessorSpec extends Specification {
crp.processResponse(json, groupByQuery, null)

then: "query is checked and volatile data is not cached"
2 * next.getResponseContext() >> responseContext // isCacheable() is not called
2 * next.getResponseContext() >> responseContext
1 * next.processResponse(json, groupByQuery, null)
0 * dataCache.set(*_)
}
Expand All @@ -236,7 +236,7 @@ class CacheV2ResponseProcessorSpec extends Specification {
crp.processResponse(json, groupByQuery, null)

then: "query is checked and volatile data is cached"
2 * next.getResponseContext() >> responseContext // isCacheable() is not called
2 * next.getResponseContext() >> responseContext
1 * next.processResponse(json, groupByQuery, null)
1 * dataCache.set(*_)
}
Expand Down

0 comments on commit b315780

Please sign in to comment.