Skip to content

Commit

Permalink
调整UT
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Nov 19, 2024
1 parent 8d0324c commit de19cec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/http_download_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package test

import (
"testing"

"github.com/farseer-go/utils/http"
"github.com/stretchr/testify/assert"
"testing"
)

func TestHttpDownload(t *testing.T) {
_, err := http.Download("https://github.com/farseers/FOPS-Actions/releases/download/v1/gitProxy", "./gitProxy", nil, 0, "socks5://127.0.0.1:7890")
_, err := http.Download("https://github.com/farseers/FOPS-Actions/releases/download/v1/gitProxy", "./gitProxy", nil, 0, "") // socks5://127.0.0.1:7890
assert.Nil(t, err)
}

0 comments on commit de19cec

Please sign in to comment.