Skip to content

Commit

Permalink
Merge pull request cockroachdb#7 from crowdflux/himanshu-github
Browse files Browse the repository at this point in the history
fixing test not working
  • Loading branch information
himanshu144141 authored Jul 26, 2016
2 parents f1bf8f8 + dec650c commit 6d68383
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/services/work_flow_svc/step/manual_step/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func createJSONFile(flus []models.FeedLineUnit, path string, manualStepId uuid.U
file, err := os.Create(filePath)
if err != nil {
plog.Error("Create file error", err, manualStepId)
return constants.Empty, 0, nil
return constants.Empty, 0, err
}
defer file.Close()

Expand Down
11 changes: 8 additions & 3 deletions app/services/work_flow_svc/step/manual_step/manual_step_test.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
package manual_step

import (
"fmt"
"testing"
"time"

"fmt"
"github.com/crowdflux/angel/app/models"
"github.com/crowdflux/angel/app/models/uuid"
"github.com/stretchr/testify/assert"
)

func TestManualStep_DownloadCsv(t *testing.T) {
manualStepId, _ := uuid.FromString("7adbafe4-1dc2-4ba3-b8ba-155c87666323")
manualStepId, _ := uuid.FromString("d364cc9e-f267-4fa7-aca0-864f79f4a3c4")
resp, err := DownloadCsv(manualStepId)

fmt.Println("Err", err)
assert.NoError(t, err)

//fmt.Println("Err", err)
fmt.Println("Response", resp)

/*assert.NoError(t, status, "Error occured while validating")
Expand All @@ -23,6 +25,9 @@ func TestManualStep_DownloadCsv(t *testing.T) {
}

func TestManualStep_UploadCsv(t *testing.T) {

t.Skip("Api has been changed")

err := UploadCsv("filename")
assert.NoError(t, err)

Expand Down
2 changes: 1 addition & 1 deletion experiments/loadtest_1.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

var client *http.Client

func main() {
func mainLoadTest() {

client = &http.Client{
Transport: &http.Transport{
Expand Down

0 comments on commit 6d68383

Please sign in to comment.