Skip to content

Commit 15fe16f

Browse files
committed
Changed test data dir name
Signed-off-by: Levi Gross <[email protected]>
1 parent 12d956e commit 15fe16f

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

base_post_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func TestSessionPostJsonRequestInvalidXML(t *testing.T) {
256256

257257
func TestBasicPostRequestUploadInvalidURL(t *testing.T) {
258258

259-
fd, err := FileUploadFromDisk("test_files/mypassword")
259+
fd, err := FileUploadFromDisk("testdata/mypassword")
260260

261261
if err != nil {
262262
t.Error("Unable to open file: ", err)
@@ -278,7 +278,7 @@ func TestBasicPostRequestUploadInvalidURL(t *testing.T) {
278278
func TestSessionPostRequestUploadInvalidURL(t *testing.T) {
279279
session := NewSession(nil)
280280

281-
fd, err := FileUploadFromDisk("test_files/mypassword")
281+
fd, err := FileUploadFromDisk("testdata/mypassword")
282282

283283
if err != nil {
284284
t.Error("Unable to open file: ", err)
@@ -450,7 +450,7 @@ func TestBasicPostRequestUploadErrorEOFReader(t *testing.T) {
450450

451451
func TestBasicPostRequestUpload(t *testing.T) {
452452

453-
fd, err := FileUploadFromDisk("test_files/mypassword")
453+
fd, err := FileUploadFromDisk("testdata/mypassword")
454454

455455
if err != nil {
456456
t.Error("Unable to open file: ", err)
@@ -508,7 +508,7 @@ func TestBasicPostRequestUpload(t *testing.T) {
508508

509509
func TestBasicPostRequestUploadMultipleFiles(t *testing.T) {
510510

511-
fd, err := FileUploadFromGlob("test_files/*")
511+
fd, err := FileUploadFromGlob("testdata/*")
512512

513513
if err != nil {
514514
t.Error("Unable to glob file: ", err)

base_put_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func TestBasicPutRequest(t *testing.T) {
1919
}
2020

2121
func TestBasicPutUploadRequest(t *testing.T) {
22-
fd, err := FileUploadFromDisk("test_files/mypassword")
22+
fd, err := FileUploadFromDisk("testdata/mypassword")
2323

2424
if err != nil {
2525
t.Error("Unable to open file: ", err)
@@ -42,7 +42,7 @@ func TestBasicPutUploadRequest(t *testing.T) {
4242
}
4343

4444
func TestBasicPutUploadRequestInvalidURL(t *testing.T) {
45-
fd, err := FileUploadFromDisk("test_files/mypassword")
45+
fd, err := FileUploadFromDisk("testdata/mypassword")
4646

4747
if err != nil {
4848
t.Error("Unable to open file: ", err)
@@ -60,7 +60,7 @@ func TestBasicPutUploadRequestInvalidURL(t *testing.T) {
6060
}
6161

6262
func TestSessionPutUploadRequestInvalidURL(t *testing.T) {
63-
fd, err := FileUploadFromDisk("test_files/mypassword")
63+
fd, err := FileUploadFromDisk("testdata/mypassword")
6464

6565
if err != nil {
6666
t.Error("Unable to open file: ", err)

file_upload_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TestErrorOpenFile(t *testing.T) {
1414
}
1515

1616
func TestGLOBFiles(t *testing.T) {
17-
fd, err := FileUploadFromGlob("test_files/*")
17+
fd, err := FileUploadFromGlob("testdata/*")
1818

1919
if err != nil {
2020
t.Error("Got an invalid GLOB: ", err)

request.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ import (
1111
"mime/multipart"
1212
"net"
1313
"net/http"
14+
"net/http/cookiejar"
1415
"net/url"
16+
"strconv"
1517
"strings"
1618
"time"
1719

18-
"net/http/cookiejar"
19-
20-
"strconv"
21-
2220
"golang.org/x/net/publicsuffix"
2321
)
2422

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)