fix tests

This commit is contained in:
chrislu
2022-08-18 00:15:46 -07:00
parent 4ffbda1c43
commit 4573c99ae3
4 changed files with 15 additions and 14 deletions

View File

@@ -39,10 +39,10 @@ func TestProtoMarshalText(t *testing.T) {
DeleteChunks: true,
}
text := proto.MarshalTextString(notification)
text, _ := proto.Marshal(notification)
notification2 := &filer_pb.EventNotification{}
proto.UnmarshalText(text, notification2)
proto.Unmarshal(text, notification2)
if notification2.OldEntry.Chunks[0].SourceFileId != notification.OldEntry.Chunks[0].SourceFileId {
t.Fatalf("marshal/unmarshal error: %s", text)