{"action":"created","issue":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin_BtLibrary/issues/70","repository_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin_BtLibrary","labels_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin_BtLibrary/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin_BtLibrary/issues/70/comments","events_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin_BtLibrary/issues/70/events","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin_BtLibrary/issues/70","id":159586762,"number":70,"title":"Instrumentation tests: toggling Bluetooth and WiFi not handling intermediate states","user":{"login":"czyzm","id":16643097,"avatar_url":"https://avatars.githubusercontent.com/u/16643097?v=3","gravatar_id":"","url":"https://api.github.com/users/czyzm","html_url":"https://github.com/czyzm","followers_url":"https://api.github.com/users/czyzm/followers","following_url":"https://api.github.com/users/czyzm/following{/other_user}","gists_url":"https://api.github.com/users/czyzm/gists{/gist_id}","starred_url":"https://api.github.com/users/czyzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czyzm/subscriptions","organizations_url":"https://api.github.com/users/czyzm/orgs","repos_url":"https://api.github.com/users/czyzm/repos","events_url":"https://api.github.com/users/czyzm/events{/privacy}","received_events_url":"https://api.github.com/users/czyzm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin_BtLibrary/labels/2%20-%20Ready","name":"2 - Ready","color":"CCCCCC"},{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin_BtLibrary/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"czyzm","id":16643097,"avatar_url":"https://avatars.githubusercontent.com/u/16643097?v=3","gravatar_id":"","url":"https://api.github.com/users/czyzm","html_url":"https://github.com/czyzm","followers_url":"https://api.github.com/users/czyzm/followers","following_url":"https://api.github.com/users/czyzm/following{/other_user}","gists_url":"https://api.github.com/users/czyzm/gists{/gist_id}","starred_url":"https://api.github.com/users/czyzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czyzm/subscriptions","organizations_url":"https://api.github.com/users/czyzm/orgs","repos_url":"https://api.github.com/users/czyzm/repos","events_url":"https://api.github.com/users/czyzm/events{/privacy}","received_events_url":"https://api.github.com/users/czyzm/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin_BtLibrary/milestones/2","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin_BtLibrary/milestones/New%20Infra","labels_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin_BtLibrary/milestones/2/labels","id":1498032,"number":2,"title":"New Infra","description":"This will be the first release of the new infrastructure working end to end.","creator":{"login":"yaronyg","id":1480964,"avatar_url":"https://avatars.githubusercontent.com/u/1480964?v=3","gravatar_id":"","url":"https://api.github.com/users/yaronyg","html_url":"https://github.com/yaronyg","followers_url":"https://api.github.com/users/yaronyg/followers","following_url":"https://api.github.com/users/yaronyg/following{/other_user}","gists_url":"https://api.github.com/users/yaronyg/gists{/gist_id}","starred_url":"https://api.github.com/users/yaronyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaronyg/subscriptions","organizations_url":"https://api.github.com/users/yaronyg/orgs","repos_url":"https://api.github.com/users/yaronyg/repos","events_url":"https://api.github.com/users/yaronyg/events{/privacy}","received_events_url":"https://api.github.com/users/yaronyg/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":14,"state":"open","created_at":"2016-01-11T19:09:25Z","updated_at":"2016-06-10T17:58:31Z","due_on":"2016-03-31T07:00:00Z","closed_at":null},"comments":2,"created_at":"2016-06-10T08:44:19Z","updated_at":"2016-06-13T05:07:56Z","closed_at":null,"body":"The toggleBluetooth and toggleWifi methods used in instrumentation tests are not correctly handling intermediate states (turning on and turning off). They are using \"isEnabled\" method which is OK for turning on but not for turning off because it assumes the media is turned off even if it is still turning off. We should check the state directly."},"comment":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin_BtLibrary/issues/comments/225490185","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin_BtLibrary/issues/70#issuecomment-225490185","issue_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin_BtLibrary/issues/70","id":225490185,"user":{"login":"czyzm","id":16643097,"avatar_url":"https://avatars.githubusercontent.com/u/16643097?v=3","gravatar_id":"","url":"https://api.github.com/users/czyzm","html_url":"https://github.com/czyzm","followers_url":"https://api.github.com/users/czyzm/followers","following_url":"https://api.github.com/users/czyzm/following{/other_user}","gists_url":"https://api.github.com/users/czyzm/gists{/gist_id}","starred_url":"https://api.github.com/users/czyzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czyzm/subscriptions","organizations_url":"https://api.github.com/users/czyzm/orgs","repos_url":"https://api.github.com/users/czyzm/repos","events_url":"https://api.github.com/users/czyzm/events{/privacy}","received_events_url":"https://api.github.com/users/czyzm/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T05:07:56Z","updated_at":"2016-06-13T05:07:56Z","body":"I treat it as an issue in the instrumentation tests only. This is because we are turning on/off bluetooth and wifi multiple times in a row and not handling the real states results in tries to, e.g. enable bluetooth while it is still turning off.\r\n\r\nOf course, the isEnable() method is also used in production code but it is done in a way that is safe (just to check if we can proceed with some operation, not if we can turn it on/off again)."}}
{"actor":{"display_login":"czyzm"}}