mirror of
https://github.com/golang/go
synced 2024-11-21 23:44:39 -07:00
archive/tar: (test) structure comparison not reflect.DeepEqual
R=dsymonds CC=golang-dev https://golang.org/cl/5487064
This commit is contained in:
parent
dd8dc6f059
commit
0e9ee93cea
@ -10,7 +10,6 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"reflect"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
@ -127,7 +126,7 @@ testLoop:
|
||||
f.Close()
|
||||
continue testLoop
|
||||
}
|
||||
if !reflect.DeepEqual(hdr, header) {
|
||||
if *hdr != *header {
|
||||
t.Errorf("test %d, entry %d: Incorrect header:\nhave %+v\nwant %+v",
|
||||
i, j, *hdr, *header)
|
||||
}
|
||||
@ -201,7 +200,7 @@ func TestIncrementalRead(t *testing.T) {
|
||||
}
|
||||
|
||||
// check the header
|
||||
if !reflect.DeepEqual(hdr, headers[nread]) {
|
||||
if *hdr != *headers[nread] {
|
||||
t.Errorf("Incorrect header:\nhave %+v\nwant %+v",
|
||||
*hdr, headers[nread])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user