{"action":"opened","issue":{"url":"https://api.github.com/repos/otsimo/api/issues/4","repository_url":"https://api.github.com/repos/otsimo/api","labels_url":"https://api.github.com/repos/otsimo/api/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/otsimo/api/issues/4/comments","events_url":"https://api.github.com/repos/otsimo/api/issues/4/events","html_url":"https://github.com/otsimo/api/issues/4","id":132988848,"number":4,"title":"api/UpdateGameEntry updates non-existing game","user":{"login":"ceroloy","id":12073032,"avatar_url":"https://avatars.githubusercontent.com/u/12073032?v=3","gravatar_id":"","url":"https://api.github.com/users/ceroloy","html_url":"https://github.com/ceroloy","followers_url":"https://api.github.com/users/ceroloy/followers","following_url":"https://api.github.com/users/ceroloy/following{/other_user}","gists_url":"https://api.github.com/users/ceroloy/gists{/gist_id}","starred_url":"https://api.github.com/users/ceroloy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceroloy/subscriptions","organizations_url":"https://api.github.com/users/ceroloy/orgs","repos_url":"https://api.github.com/users/ceroloy/repos","events_url":"https://api.github.com/users/ceroloy/events{/privacy}","received_events_url":"https://api.github.com/users/ceroloy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-11T14:32:36Z","updated_at":"2016-02-11T14:32:36Z","closed_at":null,"body":"\t\r\n\ttests := []struct {\r\n\t\tgcr *apipb.GameEntryRequest\r\n\t\terr error\r\n\t}{\r\n\t\t{\r\n\t\t\tgcr: &apipb.GameEntryRequest{\r\n\t\t\t\tChildId:\"100000000000000000000001\",\r\n\t\t\t\tGameId:\"000000000000000000000001\",\r\n\t\t\t},\r\n\t\t},\r\n\t\t{\r\n\t\t\tgcr: &apipb.GameEntryRequest{\r\n\t\t\t\tChildId:\"000000000000000000000099\",\r\n\t\t\t\tGameId:\"000000000000000000000011\",\r\n\t\t\t},\r\n\t\t\terr: grpc.Errorf(2, \"not found\"),\r\n\t\t},\r\n\t\t{\r\n\t\t\tgcr: &apipb.GameEntryRequest{},\r\n\t\t\terr: grpc.Errorf(2, \"Invalid ID\"),\r\n\t\t},\r\n\t}\r\n\r\n\tfor i, tt := range tests {\r\n\t\t_, err := apiClient.UpdateGameEntry(context.Background(), tt.gcr)\r\n\t\tif err != tt.err {\r\n\t\t\tt.Fatalf(\"case %d, expected %v, got %v\", i, tt.err, err)\r\n\t\t}\r\n\t}\r\n\r\n\r\n\r\n\r\n\r\n--- FAIL: TestUpdateGameEntry (0.01s)\r\n\tapipb_test.go:338: case 1, expected rpc error: code = 2 desc = \"not found\", got nil"}}