fix redundant type from array (#3462)

This commit is contained in:
Guo Lei 2022-08-18 17:25:25 +08:00 committed by GitHub
parent 42c6e52513
commit 3172c33fa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ import (
"google.golang.org/protobuf/proto"
)
func TestProtoMarshalText(t *testing.T) {
func TestProtoMarshal(t *testing.T) {
oldEntry := &Entry{
FullPath: util.FullPath("/this/path/to"),
@ -22,7 +22,7 @@ func TestProtoMarshalText(t *testing.T) {
TtlSec: 25,
},
Chunks: []*filer_pb.FileChunk{
&filer_pb.FileChunk{
{
FileId: "234,2423423422",
Offset: 234234,
Size: 234,
@ -48,6 +48,6 @@ func TestProtoMarshalText(t *testing.T) {
t.Fatalf("marshal/unmarshal error: %s", text)
}
println(text)
println(string(text))
}