Skip to content

Commit

Permalink
use stable url to test
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Apr 2, 2020
1 parent 9f3ecd1 commit efd7186
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions progressbar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func TestReaderToBuffer(t *testing.T) {
t.SkipNow()
}

urlToGet := "https://github.com/schollz/croc/releases/download/v4.1.4/croc_v4.1.4_Windows-64bit_GUI.zip"
urlToGet := "https://dl.google.com/go/go1.14.1.src.tar.gz"
req, err := http.NewRequest("GET", urlToGet, nil)
assert.Nil(t, err)
resp, err := http.DefaultClient.Do(req)
Expand All @@ -306,15 +306,15 @@ func TestReaderToBuffer(t *testing.T) {

md5, err := md5sum(buf)
assert.Nil(t, err)
assert.Equal(t, "1e496ef2beba6e2a5e4200cba72a5ad6", md5)
assert.Equal(t, "d441819a800f8c90825355dfbede7266", md5)
}

func TestReaderToFile(t *testing.T) {
if testing.Short() {
t.SkipNow()
}

urlToGet := "https://github.com/schollz/croc/releases/download/v4.1.4/croc_v4.1.4_Windows-64bit_GUI.zip"
urlToGet := "https://dl.google.com/go/go1.14.1.src.tar.gz"
req, err := http.NewRequest("GET", urlToGet, nil)
assert.Nil(t, err)
resp, err := http.DefaultClient.Do(req)
Expand All @@ -337,7 +337,7 @@ func TestReaderToFile(t *testing.T) {

md5, err := md5sum(f)
assert.Nil(t, err)
assert.Equal(t, "1e496ef2beba6e2a5e4200cba72a5ad6", md5)
assert.Equal(t, "d441819a800f8c90825355dfbede7266", md5)
}

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

0 comments on commit efd7186

Please sign in to comment.