{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/comments/226515168","pull_request_review_id":166356186,"id":226515168,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjUxNTE2OA==","diff_hunk":"@@ -59,13 +60,24 @@ def _create_container(self, client):\n             mounts=[docker.types.Mount(volume_path, self.VOLUME_NAME)]\n         )\n         network_config = client.create_config_for_network(self.NETWORK_NAME)\n-        client.create_container(\n-            image_name,\n-            name=self.CONTAINER_NAME,\n-            networking_config=network_config,\n-            host_config=host_config,\n-            volumes=[volume_path],\n-            environment=env_dict)\n+        vm_os_type = platform.system().lower()\n+        if (vm_os_type == 'darwin') or (vm_os_type == 'linux'):\n+            client.create_container(\n+                image_name,\n+                name=self.CONTAINER_NAME,\n+                networking_config=network_config,\n+                host_config=host_config,\n+                volumes=[volume_path],\n+                environment=env_dict,\n+                command='sleep 20s')","path":"tests/test_edgedockerclient_int.py","position":28,"original_position":28,"commit_id":"3d82671054b0b4ad8307819529a8a5efecd2da4e","original_commit_id":"3d82671054b0b4ad8307819529a8a5efecd2da4e","user":{"login":"adashen","id":1872137,"node_id":"MDQ6VXNlcjE4NzIxMzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1872137?v=4","gravatar_id":"","url":"https://api.github.com/users/adashen","html_url":"https://github.com/adashen","followers_url":"https://api.github.com/users/adashen/followers","following_url":"https://api.github.com/users/adashen/following{/other_user}","gists_url":"https://api.github.com/users/adashen/gists{/gist_id}","starred_url":"https://api.github.com/users/adashen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adashen/subscriptions","organizations_url":"https://api.github.com/users/adashen/orgs","repos_url":"https://api.github.com/users/adashen/repos","events_url":"https://api.github.com/users/adashen/events{/privacy}","received_events_url":"https://api.github.com/users/adashen/received_events","type":"User","site_admin":false},"body":"why it need sleep on mac/ linux?","created_at":"2018-10-19T01:47:22Z","updated_at":"2018-10-19T01:47:22Z","html_url":"https://github.com/Azure/iotedgehubdev/pull/97#discussion_r226515168","pull_request_url":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/97","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/comments/226515168"},"html":{"href":"https://github.com/Azure/iotedgehubdev/pull/97#discussion_r226515168"},"pull_request":{"href":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/97","id":223837619,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzODM3NjE5","html_url":"https://github.com/Azure/iotedgehubdev/pull/97","diff_url":"https://github.com/Azure/iotedgehubdev/pull/97.diff","patch_url":"https://github.com/Azure/iotedgehubdev/pull/97.patch","issue_url":"https://api.github.com/repos/Azure/iotedgehubdev/issues/97","number":97,"state":"open","locked":false,"title":"add pipeline for macos","user":{"login":"neil-yechenwei","id":19754191,"node_id":"MDQ6VXNlcjE5NzU0MTkx","avatar_url":"https://avatars2.githubusercontent.com/u/19754191?v=4","gravatar_id":"","url":"https://api.github.com/users/neil-yechenwei","html_url":"https://github.com/neil-yechenwei","followers_url":"https://api.github.com/users/neil-yechenwei/followers","following_url":"https://api.github.com/users/neil-yechenwei/following{/other_user}","gists_url":"https://api.github.com/users/neil-yechenwei/gists{/gist_id}","starred_url":"https://api.github.com/users/neil-yechenwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neil-yechenwei/subscriptions","organizations_url":"https://api.github.com/users/neil-yechenwei/orgs","repos_url":"https://api.github.com/users/neil-yechenwei/repos","events_url":"https://api.github.com/users/neil-yechenwei/events{/privacy}","received_events_url":"https://api.github.com/users/neil-yechenwei/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-18T06:22:27Z","updated_at":"2018-10-19T01:47:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fadc775eb88f2fd40e7d00b442dfd97b867af92b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/97/commits","review_comments_url":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/97/comments","review_comment_url":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/iotedgehubdev/issues/97/comments","statuses_url":"https://api.github.com/repos/Azure/iotedgehubdev/statuses/3d82671054b0b4ad8307819529a8a5efecd2da4e","head":{"label":"neil-yechenwei:master","ref":"master","sha":"3d82671054b0b4ad8307819529a8a5efecd2da4e","user":{"login":"neil-yechenwei","id":19754191,"node_id":"MDQ6VXNlcjE5NzU0MTkx","avatar_url":"https://avatars2.githubusercontent.com/u/19754191?v=4","gravatar_id":"","url":"https://api.github.com/users/neil-yechenwei","html_url":"https://github.com/neil-yechenwei","followers_url":"https://api.github.com/users/neil-yechenwei/followers","following_url":"https://api.github.com/users/neil-yechenwei/following{/other_user}","gists_url":"https://api.github.com/users/neil-yechenwei/gists{/gist_id}","starred_url":"https://api.github.com/users/neil-yechenwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neil-yechenwei/subscriptions","organizations_url":"https://api.github.com/users/neil-yechenwei/orgs","repos_url":"https://api.github.com/users/neil-yechenwei/repos","events_url":"https://api.github.com/users/neil-yechenwei/events{/privacy}","received_events_url":"https://api.github.com/users/neil-yechenwei/received_events","type":"User","site_admin":false},"repo":{"id":149068175,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkwNjgxNzU=","name":"iotedgehubdev","full_name":"neil-yechenwei/iotedgehubdev","private":false,"owner":{"login":"neil-yechenwei","id":19754191,"node_id":"MDQ6VXNlcjE5NzU0MTkx","avatar_url":"https://avatars2.githubusercontent.com/u/19754191?v=4","gravatar_id":"","url":"https://api.github.com/users/neil-yechenwei","html_url":"https://github.com/neil-yechenwei","followers_url":"https://api.github.com/users/neil-yechenwei/followers","following_url":"https://api.github.com/users/neil-yechenwei/following{/other_user}","gists_url":"https://api.github.com/users/neil-yechenwei/gists{/gist_id}","starred_url":"https://api.github.com/users/neil-yechenwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neil-yechenwei/subscriptions","organizations_url":"https://api.github.com/users/neil-yechenwei/orgs","repos_url":"https://api.github.com/users/neil-yechenwei/repos","events_url":"https://api.github.com/users/neil-yechenwei/events{/privacy}","received_events_url":"https://api.github.com/users/neil-yechenwei/received_events","type":"User","site_admin":false},"html_url":"https://github.com/neil-yechenwei/iotedgehubdev","description":"IoT Edge Hub Dev Tool","fork":true,"url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev","forks_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/forks","keys_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/teams","hooks_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/hooks","issue_events_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/issues/events{/number}","events_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/events","assignees_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/assignees{/user}","branches_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/branches{/branch}","tags_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/tags","blobs_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/git/refs{/sha}","trees_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/statuses/{sha}","languages_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/languages","stargazers_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/stargazers","contributors_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/contributors","subscribers_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/subscribers","subscription_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/subscription","commits_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/commits{/sha}","git_commits_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/git/commits{/sha}","comments_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/comments{/number}","issue_comment_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/issues/comments{/number}","contents_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/contents/{+path}","compare_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/merges","archive_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/downloads","issues_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/issues{/number}","pulls_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/pulls{/number}","milestones_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/milestones{/number}","notifications_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/labels{/name}","releases_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/releases{/id}","deployments_url":"https://api.github.com/repos/neil-yechenwei/iotedgehubdev/deployments","created_at":"2018-09-17T04:19:10Z","updated_at":"2018-10-19T01:35:42Z","pushed_at":"2018-10-19T01:35:40Z","git_url":"git://github.com/neil-yechenwei/iotedgehubdev.git","ssh_url":"git@github.com:neil-yechenwei/iotedgehubdev.git","clone_url":"https://github.com/neil-yechenwei/iotedgehubdev.git","svn_url":"https://github.com/neil-yechenwei/iotedgehubdev","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"a6c677b0778e09c3d561989dce675b178155cbc4","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":138967965,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg5Njc5NjU=","name":"iotedgehubdev","full_name":"Azure/iotedgehubdev","private":false,"owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Azure/iotedgehubdev","description":"IoT Edge Hub Dev Tool","fork":false,"url":"https://api.github.com/repos/Azure/iotedgehubdev","forks_url":"https://api.github.com/repos/Azure/iotedgehubdev/forks","keys_url":"https://api.github.com/repos/Azure/iotedgehubdev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/iotedgehubdev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/iotedgehubdev/teams","hooks_url":"https://api.github.com/repos/Azure/iotedgehubdev/hooks","issue_events_url":"https://api.github.com/repos/Azure/iotedgehubdev/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/iotedgehubdev/events","assignees_url":"https://api.github.com/repos/Azure/iotedgehubdev/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/iotedgehubdev/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/iotedgehubdev/tags","blobs_url":"https://api.github.com/repos/Azure/iotedgehubdev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/iotedgehubdev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/iotedgehubdev/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/iotedgehubdev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/iotedgehubdev/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/iotedgehubdev/languages","stargazers_url":"https://api.github.com/repos/Azure/iotedgehubdev/stargazers","contributors_url":"https://api.github.com/repos/Azure/iotedgehubdev/contributors","subscribers_url":"https://api.github.com/repos/Azure/iotedgehubdev/subscribers","subscription_url":"https://api.github.com/repos/Azure/iotedgehubdev/subscription","commits_url":"https://api.github.com/repos/Azure/iotedgehubdev/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/iotedgehubdev/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/iotedgehubdev/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/iotedgehubdev/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/iotedgehubdev/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/iotedgehubdev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/iotedgehubdev/merges","archive_url":"https://api.github.com/repos/Azure/iotedgehubdev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/iotedgehubdev/downloads","issues_url":"https://api.github.com/repos/Azure/iotedgehubdev/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/iotedgehubdev/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/iotedgehubdev/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/iotedgehubdev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/iotedgehubdev/labels{/name}","releases_url":"https://api.github.com/repos/Azure/iotedgehubdev/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/iotedgehubdev/deployments","created_at":"2018-06-28T04:57:46Z","updated_at":"2018-10-18T06:57:00Z","pushed_at":"2018-10-19T01:35:41Z","git_url":"git://github.com/Azure/iotedgehubdev.git","ssh_url":"git@github.com:Azure/iotedgehubdev.git","clone_url":"https://github.com/Azure/iotedgehubdev.git","svn_url":"https://github.com/Azure/iotedgehubdev","homepage":null,"size":117,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3,"open_issues":11,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/97"},"html":{"href":"https://github.com/Azure/iotedgehubdev/pull/97"},"issue":{"href":"https://api.github.com/repos/Azure/iotedgehubdev/issues/97"},"comments":{"href":"https://api.github.com/repos/Azure/iotedgehubdev/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/iotedgehubdev/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/iotedgehubdev/statuses/3d82671054b0b4ad8307819529a8a5efecd2da4e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"adashen"}}