We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f1564 commit ac05357Copy full SHA for ac05357
src/archive/tar/writer_test.go
@@ -1351,9 +1351,6 @@ func TestWriterAddFs(t *testing.T) {
1351
1352
for name, file := range fsys {
1353
hdr, err := tr.Next()
1354
- if err == io.EOF {
1355
- break // End of archive
1356
- }
1357
if err != nil {
1358
t.Fatal(err)
1359
}
@@ -1374,4 +1371,10 @@ func TestWriterAddFs(t *testing.T) {
1374
1371
data, file.Data)
1375
1372
1376
1373
+
+ // check for end of archive
+ _, err := tr.Next()
1377
+ if err != io.EOF {
1378
+ t.Fatal("Expected end of archive, got err: ", err)
1379
+ }
1380
0 commit comments