{"action":"created","comment":{"url":"https://api.github.com/repos/NLog/NLog/pulls/comments/54775012","id":54775012,"diff_hunk":"@@ -2280,14 +2282,21 @@ public void Dont_throw_Exception_when_archiving_is_enabled()\n </nlog>\n \");\n \n-            NLog.LogManager.GetLogger(\"Test\").Info(\"very important message\");\n+                NLog.LogManager.GetLogger(\"Test\").Info(\"very important message\");\n+            }\n+            finally\n+            {\n+                LogManager.Configuration = null;","path":"tests/NLog.UnitTests/Targets/FileTargetTests.cs","position":20,"original_position":20,"commit_id":"5aef607987c86654ab78b24bf475027e05e784a0","original_commit_id":"5aef607987c86654ab78b24bf475027e05e784a0","user":{"login":"304NotModified","id":5808377,"avatar_url":"https://avatars.githubusercontent.com/u/5808377?v=3","gravatar_id":"","url":"https://api.github.com/users/304NotModified","html_url":"https://github.com/304NotModified","followers_url":"https://api.github.com/users/304NotModified/followers","following_url":"https://api.github.com/users/304NotModified/following{/other_user}","gists_url":"https://api.github.com/users/304NotModified/gists{/gist_id}","starred_url":"https://api.github.com/users/304NotModified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/304NotModified/subscriptions","organizations_url":"https://api.github.com/users/304NotModified/orgs","repos_url":"https://api.github.com/users/304NotModified/repos","events_url":"https://api.github.com/users/304NotModified/events{/privacy}","received_events_url":"https://api.github.com/users/304NotModified/received_events","type":"User","site_admin":false},"body":"I tried something slimiar, but  in the ctor of NLogTestBase (as xUnit create a new instance of the test class every test)\r\n\r\nhttps://github.com/NLog/NLog/blob/master/tests/NLog.UnitTests/NLogTestBase.cs#L64\r\n\r\nSo any idea why that won't work?","created_at":"2016-03-02T19:17:53Z","updated_at":"2016-03-02T19:17:53Z","html_url":"https://github.com/NLog/NLog/pull/1279#discussion_r54775012","pull_request_url":"https://api.github.com/repos/NLog/NLog/pulls/1279","_links":{"self":{"href":"https://api.github.com/repos/NLog/NLog/pulls/comments/54775012"},"html":{"href":"https://github.com/NLog/NLog/pull/1279#discussion_r54775012"},"pull_request":{"href":"https://api.github.com/repos/NLog/NLog/pulls/1279"}}},"pull_request":{"url":"https://api.github.com/repos/NLog/NLog/pulls/1279","id":61445775,"html_url":"https://github.com/NLog/NLog/pull/1279","diff_url":"https://github.com/NLog/NLog/pull/1279.diff","patch_url":"https://github.com/NLog/NLog/pull/1279.patch","issue_url":"https://api.github.com/repos/NLog/NLog/issues/1279","number":1279,"state":"open","locked":false,"title":"Fix tests to ensure all AsyncTargetWrapper's are closed.","user":{"login":"bhaeussermann","id":7482216,"avatar_url":"https://avatars.githubusercontent.com/u/7482216?v=3","gravatar_id":"","url":"https://api.github.com/users/bhaeussermann","html_url":"https://github.com/bhaeussermann","followers_url":"https://api.github.com/users/bhaeussermann/followers","following_url":"https://api.github.com/users/bhaeussermann/following{/other_user}","gists_url":"https://api.github.com/users/bhaeussermann/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaeussermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaeussermann/subscriptions","organizations_url":"https://api.github.com/users/bhaeussermann/orgs","repos_url":"https://api.github.com/users/bhaeussermann/repos","events_url":"https://api.github.com/users/bhaeussermann/events{/privacy}","received_events_url":"https://api.github.com/users/bhaeussermann/received_events","type":"User","site_admin":false},"body":"Fixes #1251 ","created_at":"2016-03-02T18:36:24Z","updated_at":"2016-03-02T19:17:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2833ae04ec80c3c3586f9f47909ba6478c0e2f4f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NLog/NLog/pulls/1279/commits","review_comments_url":"https://api.github.com/repos/NLog/NLog/pulls/1279/comments","review_comment_url":"https://api.github.com/repos/NLog/NLog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/1279/comments","statuses_url":"https://api.github.com/repos/NLog/NLog/statuses/5aef607987c86654ab78b24bf475027e05e784a0","head":{"label":"bhaeussermann:branch2","ref":"branch2","sha":"5aef607987c86654ab78b24bf475027e05e784a0","user":{"login":"bhaeussermann","id":7482216,"avatar_url":"https://avatars.githubusercontent.com/u/7482216?v=3","gravatar_id":"","url":"https://api.github.com/users/bhaeussermann","html_url":"https://github.com/bhaeussermann","followers_url":"https://api.github.com/users/bhaeussermann/followers","following_url":"https://api.github.com/users/bhaeussermann/following{/other_user}","gists_url":"https://api.github.com/users/bhaeussermann/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaeussermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaeussermann/subscriptions","organizations_url":"https://api.github.com/users/bhaeussermann/orgs","repos_url":"https://api.github.com/users/bhaeussermann/repos","events_url":"https://api.github.com/users/bhaeussermann/events{/privacy}","received_events_url":"https://api.github.com/users/bhaeussermann/received_events","type":"User","site_admin":false},"repo":{"id":39370223,"name":"NLog","full_name":"bhaeussermann/NLog","owner":{"login":"bhaeussermann","id":7482216,"avatar_url":"https://avatars.githubusercontent.com/u/7482216?v=3","gravatar_id":"","url":"https://api.github.com/users/bhaeussermann","html_url":"https://github.com/bhaeussermann","followers_url":"https://api.github.com/users/bhaeussermann/followers","following_url":"https://api.github.com/users/bhaeussermann/following{/other_user}","gists_url":"https://api.github.com/users/bhaeussermann/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaeussermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaeussermann/subscriptions","organizations_url":"https://api.github.com/users/bhaeussermann/orgs","repos_url":"https://api.github.com/users/bhaeussermann/repos","events_url":"https://api.github.com/users/bhaeussermann/events{/privacy}","received_events_url":"https://api.github.com/users/bhaeussermann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhaeussermann/NLog","description":"NLog - Advanced .NET and Silverlight Logging","fork":true,"url":"https://api.github.com/repos/bhaeussermann/NLog","forks_url":"https://api.github.com/repos/bhaeussermann/NLog/forks","keys_url":"https://api.github.com/repos/bhaeussermann/NLog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhaeussermann/NLog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhaeussermann/NLog/teams","hooks_url":"https://api.github.com/repos/bhaeussermann/NLog/hooks","issue_events_url":"https://api.github.com/repos/bhaeussermann/NLog/issues/events{/number}","events_url":"https://api.github.com/repos/bhaeussermann/NLog/events","assignees_url":"https://api.github.com/repos/bhaeussermann/NLog/assignees{/user}","branches_url":"https://api.github.com/repos/bhaeussermann/NLog/branches{/branch}","tags_url":"https://api.github.com/repos/bhaeussermann/NLog/tags","blobs_url":"https://api.github.com/repos/bhaeussermann/NLog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhaeussermann/NLog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhaeussermann/NLog/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhaeussermann/NLog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhaeussermann/NLog/statuses/{sha}","languages_url":"https://api.github.com/repos/bhaeussermann/NLog/languages","stargazers_url":"https://api.github.com/repos/bhaeussermann/NLog/stargazers","contributors_url":"https://api.github.com/repos/bhaeussermann/NLog/contributors","subscribers_url":"https://api.github.com/repos/bhaeussermann/NLog/subscribers","subscription_url":"https://api.github.com/repos/bhaeussermann/NLog/subscription","commits_url":"https://api.github.com/repos/bhaeussermann/NLog/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhaeussermann/NLog/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhaeussermann/NLog/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhaeussermann/NLog/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhaeussermann/NLog/contents/{+path}","compare_url":"https://api.github.com/repos/bhaeussermann/NLog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhaeussermann/NLog/merges","archive_url":"https://api.github.com/repos/bhaeussermann/NLog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhaeussermann/NLog/downloads","issues_url":"https://api.github.com/repos/bhaeussermann/NLog/issues{/number}","pulls_url":"https://api.github.com/repos/bhaeussermann/NLog/pulls{/number}","milestones_url":"https://api.github.com/repos/bhaeussermann/NLog/milestones{/number}","notifications_url":"https://api.github.com/repos/bhaeussermann/NLog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhaeussermann/NLog/labels{/name}","releases_url":"https://api.github.com/repos/bhaeussermann/NLog/releases{/id}","deployments_url":"https://api.github.com/repos/bhaeussermann/NLog/deployments","created_at":"2015-07-20T07:46:22Z","updated_at":"2015-07-20T07:46:25Z","pushed_at":"2016-03-02T18:54:40Z","git_url":"git://github.com/bhaeussermann/NLog.git","ssh_url":"git@github.com:bhaeussermann/NLog.git","clone_url":"https://github.com/bhaeussermann/NLog.git","svn_url":"https://github.com/bhaeussermann/NLog","homepage":null,"size":48768,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NLog:master","ref":"master","sha":"307bf9d7ab19d1fbd2b04fa4260e1e07ad1fa311","user":{"login":"NLog","id":2331628,"avatar_url":"https://avatars.githubusercontent.com/u/2331628?v=3","gravatar_id":"","url":"https://api.github.com/users/NLog","html_url":"https://github.com/NLog","followers_url":"https://api.github.com/users/NLog/followers","following_url":"https://api.github.com/users/NLog/following{/other_user}","gists_url":"https://api.github.com/users/NLog/gists{/gist_id}","starred_url":"https://api.github.com/users/NLog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NLog/subscriptions","organizations_url":"https://api.github.com/users/NLog/orgs","repos_url":"https://api.github.com/users/NLog/repos","events_url":"https://api.github.com/users/NLog/events{/privacy}","received_events_url":"https://api.github.com/users/NLog/received_events","type":"Organization","site_admin":false},"repo":{"id":5780416,"name":"NLog","full_name":"NLog/NLog","owner":{"login":"NLog","id":2331628,"avatar_url":"https://avatars.githubusercontent.com/u/2331628?v=3","gravatar_id":"","url":"https://api.github.com/users/NLog","html_url":"https://github.com/NLog","followers_url":"https://api.github.com/users/NLog/followers","following_url":"https://api.github.com/users/NLog/following{/other_user}","gists_url":"https://api.github.com/users/NLog/gists{/gist_id}","starred_url":"https://api.github.com/users/NLog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NLog/subscriptions","organizations_url":"https://api.github.com/users/NLog/orgs","repos_url":"https://api.github.com/users/NLog/repos","events_url":"https://api.github.com/users/NLog/events{/privacy}","received_events_url":"https://api.github.com/users/NLog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NLog/NLog","description":"NLog - Advanced .NET and Silverlight Logging","fork":false,"url":"https://api.github.com/repos/NLog/NLog","forks_url":"https://api.github.com/repos/NLog/NLog/forks","keys_url":"https://api.github.com/repos/NLog/NLog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NLog/NLog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NLog/NLog/teams","hooks_url":"https://api.github.com/repos/NLog/NLog/hooks","issue_events_url":"https://api.github.com/repos/NLog/NLog/issues/events{/number}","events_url":"https://api.github.com/repos/NLog/NLog/events","assignees_url":"https://api.github.com/repos/NLog/NLog/assignees{/user}","branches_url":"https://api.github.com/repos/NLog/NLog/branches{/branch}","tags_url":"https://api.github.com/repos/NLog/NLog/tags","blobs_url":"https://api.github.com/repos/NLog/NLog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NLog/NLog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NLog/NLog/git/refs{/sha}","trees_url":"https://api.github.com/repos/NLog/NLog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NLog/NLog/statuses/{sha}","languages_url":"https://api.github.com/repos/NLog/NLog/languages","stargazers_url":"https://api.github.com/repos/NLog/NLog/stargazers","contributors_url":"https://api.github.com/repos/NLog/NLog/contributors","subscribers_url":"https://api.github.com/repos/NLog/NLog/subscribers","subscription_url":"https://api.github.com/repos/NLog/NLog/subscription","commits_url":"https://api.github.com/repos/NLog/NLog/commits{/sha}","git_commits_url":"https://api.github.com/repos/NLog/NLog/git/commits{/sha}","comments_url":"https://api.github.com/repos/NLog/NLog/comments{/number}","issue_comment_url":"https://api.github.com/repos/NLog/NLog/issues/comments{/number}","contents_url":"https://api.github.com/repos/NLog/NLog/contents/{+path}","compare_url":"https://api.github.com/repos/NLog/NLog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NLog/NLog/merges","archive_url":"https://api.github.com/repos/NLog/NLog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NLog/NLog/downloads","issues_url":"https://api.github.com/repos/NLog/NLog/issues{/number}","pulls_url":"https://api.github.com/repos/NLog/NLog/pulls{/number}","milestones_url":"https://api.github.com/repos/NLog/NLog/milestones{/number}","notifications_url":"https://api.github.com/repos/NLog/NLog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NLog/NLog/labels{/name}","releases_url":"https://api.github.com/repos/NLog/NLog/releases{/id}","deployments_url":"https://api.github.com/repos/NLog/NLog/deployments","created_at":"2012-09-12T13:49:29Z","updated_at":"2016-03-02T15:36:25Z","pushed_at":"2016-03-02T18:54:40Z","git_url":"git://github.com/NLog/NLog.git","ssh_url":"git@github.com:NLog/NLog.git","clone_url":"https://github.com/NLog/NLog.git","svn_url":"https://github.com/NLog/NLog","homepage":"http://nlog-project.org","size":122807,"stargazers_count":1487,"watchers_count":1487,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":541,"mirror_url":null,"open_issues_count":154,"forks":541,"open_issues":154,"watchers":1487,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NLog/NLog/pulls/1279"},"html":{"href":"https://github.com/NLog/NLog/pull/1279"},"issue":{"href":"https://api.github.com/repos/NLog/NLog/issues/1279"},"comments":{"href":"https://api.github.com/repos/NLog/NLog/issues/1279/comments"},"review_comments":{"href":"https://api.github.com/repos/NLog/NLog/pulls/1279/comments"},"review_comment":{"href":"https://api.github.com/repos/NLog/NLog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NLog/NLog/pulls/1279/commits"},"statuses":{"href":"https://api.github.com/repos/NLog/NLog/statuses/5aef607987c86654ab78b24bf475027e05e784a0"}}}}