{"action":"created","issue":{"url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/484","labels_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/484/comments","events_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/484/events","html_url":"https://github.com/FakeItEasy/FakeItEasy/issues/484","id":73086819,"number":484,"title":"Support configured calls during parallel test execution","user":{"login":"TimLovellSmith","id":2711795,"avatar_url":"https://avatars.githubusercontent.com/u/2711795?v=3","gravatar_id":"","url":"https://api.github.com/users/TimLovellSmith","html_url":"https://github.com/TimLovellSmith","followers_url":"https://api.github.com/users/TimLovellSmith/followers","following_url":"https://api.github.com/users/TimLovellSmith/following{/other_user}","gists_url":"https://api.github.com/users/TimLovellSmith/gists{/gist_id}","starred_url":"https://api.github.com/users/TimLovellSmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimLovellSmith/subscriptions","organizations_url":"https://api.github.com/users/TimLovellSmith/orgs","repos_url":"https://api.github.com/users/TimLovellSmith/repos","events_url":"https://api.github.com/users/TimLovellSmith/events{/privacy}","received_events_url":"https://api.github.com/users/TimLovellSmith/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/labels/0%20-%20Backlog","name":"0 - Backlog","color":"CCCCCC"},{"url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-04T18:08:10Z","updated_at":"2015-06-26T00:02:47Z","closed_at":null,"body":"![whattt](https://cloud.githubusercontent.com/assets/2711795/7458929/43b123e4-f24d-11e4-89ea-54eeb42efc71.png)\r\n\r\nThis is really confusing me. How can this be a failure - doesn't that mean the 1 call it got matches?\r\nThe code in question looks like: \r\n\r\n```C#\r\nvar fakeDns = A.Fake<IAzureDnsResourceManager>();\r\n\r\n/// do stuff\r\n\r\nvar theCall = A.CallTo(() => fakeDns.GetCNameAync(\"busy123\"));\r\ntheCall.Returns(Task.FromResult(\"busy123456\"));\r\n\r\n/// do stuff\r\n\r\ntheCall.MustHaveHappened();\r\n```\r\n\r\nFakeItEasy version 1.25.1. What I'm doing *different* from before is running tests in parallel... if I rerun this test on its own, it passes."},"comment":{"url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/comments/115433718","html_url":"https://github.com/FakeItEasy/FakeItEasy/issues/484#issuecomment-115433718","issue_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/484","id":115433718,"user":{"login":"blairconrad","id":3275797,"avatar_url":"https://avatars.githubusercontent.com/u/3275797?v=3","gravatar_id":"","url":"https://api.github.com/users/blairconrad","html_url":"https://github.com/blairconrad","followers_url":"https://api.github.com/users/blairconrad/followers","following_url":"https://api.github.com/users/blairconrad/following{/other_user}","gists_url":"https://api.github.com/users/blairconrad/gists{/gist_id}","starred_url":"https://api.github.com/users/blairconrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blairconrad/subscriptions","organizations_url":"https://api.github.com/users/blairconrad/orgs","repos_url":"https://api.github.com/users/blairconrad/repos","events_url":"https://api.github.com/users/blairconrad/events{/privacy}","received_events_url":"https://api.github.com/users/blairconrad/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T00:02:47Z","updated_at":"2015-06-26T00:02:47Z","body":"I edited your comment to improve the code/output formatting.\r\n\r\nAh. That was the key. Secretly using `Fake.CreateScope`. If only we'd had the helper code all along.\r\nYeah, I'd suspected that scopes would mess up parallel test execution, but they aren't documented and so I assume are infrequently used and I can't think of a way to fix them, so I hadn't jumped on the problem, in favour of concentrating on work for 2.0, as well as outside stuff I have going on.\r\nThanks, @TimLovellSmith."}}