Permalink
Browse files

review comments

  • Loading branch information...
1 parent 2aaa785 commit 74e1750da86d1874c99f7ad95ce2b0548e4a054f @tebeka committed Feb 21, 2014
Showing with 3 additions and 0 deletions.
  1. +1 −0 dw/dw.go
  2. +2 −0 dw/dw_test.go
View
@@ -69,6 +69,7 @@ func getClouds() ([]Cloud, error) {
return nil, err
}
defer resp.Body.Close()
+ // FIXME: Move to apiCall
if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("bad return code: %d", resp.StatusCode)
}
View
@@ -97,6 +97,7 @@ func Test_getClouds(t *testing.T) {
found := false
for _, cloud := range clouds {
+ // FIXME: Use findCloudId
if (cloud.Domain == testCloud) && (cloud.Region == "us") {
found = true
break
@@ -108,6 +109,7 @@ func Test_getClouds(t *testing.T) {
}
}
+// FIXME: Table driven
func test_findCloudId(t *testing.T) {
clouds, err := getClouds()
if err != nil {

0 comments on commit 74e1750

Please sign in to comment.