Skip to content

Commit 94951db

Browse files
committed
fix: typo, and add missing err catch
1 parent 550445e commit 94951db

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

got_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ func downloadChunksTest(t *testing.T, url string, size int64) {
183183

184184
info, err := d.GetInfo()
185185

186+
if err != nil {
187+
t.Error(err)
188+
return
189+
}
190+
186191
if size != info.Length {
187192
t.Error("length and file size doesn't match")
188193
}
@@ -229,7 +234,7 @@ func downloadNotFoundTest(t *testing.T, url string) {
229234
_, err := got.New(url, tmpFile)
230235

231236
if err == nil {
232-
t.Error("It sould have an error")
237+
t.Error("It should have an error")
233238
return
234239
}
235240
}
@@ -260,7 +265,7 @@ func downloadHeadNotSupported(t *testing.T, url string) {
260265

261266
if *info != (got.Info{}) {
262267

263-
t.Error("It sould have a empty Info{}")
268+
t.Error("It should have a empty Info{}")
264269
}
265270
}
266271

0 commit comments

Comments
 (0)