{"action":"closed","issue":{"url":"https://api.github.com/repos/bustoutsolutions/siesta/issues/153","repository_url":"https://api.github.com/repos/bustoutsolutions/siesta","labels_url":"https://api.github.com/repos/bustoutsolutions/siesta/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/bustoutsolutions/siesta/issues/153/comments","events_url":"https://api.github.com/repos/bustoutsolutions/siesta/issues/153/events","html_url":"https://github.com/bustoutsolutions/siesta/issues/153","id":192588308,"number":153,"title":"Test with Siesta changed behavoir","user":{"login":"jordanpwood","id":6576194,"avatar_url":"https://avatars.githubusercontent.com/u/6576194?v=3","gravatar_id":"","url":"https://api.github.com/users/jordanpwood","html_url":"https://github.com/jordanpwood","followers_url":"https://api.github.com/users/jordanpwood/followers","following_url":"https://api.github.com/users/jordanpwood/following{/other_user}","gists_url":"https://api.github.com/users/jordanpwood/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanpwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanpwood/subscriptions","organizations_url":"https://api.github.com/users/jordanpwood/orgs","repos_url":"https://api.github.com/users/jordanpwood/repos","events_url":"https://api.github.com/users/jordanpwood/events{/privacy}","received_events_url":"https://api.github.com/users/jordanpwood/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-30T15:03:09Z","updated_at":"2016-12-02T15:48:59Z","closed_at":"2016-12-02T15:48:59Z","body":"I have a test which exercises Siesta and the persistent cache that I wrote that Siesta uses.  Today I noticed that this test is failing, when it used to work.  In the test I setup a resource, call loadIfNeeded, then when I get a .newData with the event source .network (the actual network call uses URL mocking), I wipe the resource, and then wait for another .newData with a source of .wipe, then load the resource again.  I expect this to get data from my cache which got populated by the first load.  However, it seems that the resource is making a new request before the cache has returned a result.  Is that expected?  Is there supposed to be a race between the request and the cache hit, and I just got lucky before?  If so, got any suggestions on how to change my test?"}}
{"actor":{"display_login":"pcantrell"}}