Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
asticode committed Sep 15, 2018
1 parent cc50b17 commit be8113b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@ package astilectron

import (
"context"
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"testing"

"fmt"

"sync"
"testing"

"github.com/asticode/go-astitools/context"
"github.com/pkg/errors"
"github.com/rs/xid"
"github.com/stretchr/testify/assert"
)

Expand Down Expand Up @@ -53,8 +50,11 @@ func (h *mockedHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
}
}

var tempPathCount int

func mockedTempPath() string {
return "testdata/tmp/" + xid.New().String()
tempPathCount++
return fmt.Sprintf("testdata/tmp/%d", tempPathCount)
}

func TestDownload(t *testing.T) {
Expand Down

0 comments on commit be8113b

Please sign in to comment.