From bf9d4905382eec3f4a2095947fc9bec997fd070e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 17 May 2019 02:28:20 -0700 Subject: [PATCH] fix for tests --- weed/filer2/filerstore.go | 3 +++ weed/pb/filer_pb/filer_pb_helper_test.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/weed/filer2/filerstore.go b/weed/filer2/filerstore.go index 7755ee1a3..3db50bf17 100644 --- a/weed/filer2/filerstore.go +++ b/weed/filer2/filerstore.go @@ -56,6 +56,9 @@ func (fsw *FilerStoreWrapper) UpdateEntry(ctx context.Context, entry *Entry) err func (fsw *FilerStoreWrapper) FindEntry(ctx context.Context, fp FullPath) (entry *Entry, err error) { entry, err = fsw.actualStore.FindEntry(ctx, fp) + if err != nil { + return nil, err + } filer_pb.AfterEntryDeserialization(entry.Chunks) return } diff --git a/weed/pb/filer_pb/filer_pb_helper_test.go b/weed/pb/filer_pb/filer_pb_helper_test.go index 6f08a1159..64ed72ed7 100644 --- a/weed/pb/filer_pb/filer_pb_helper_test.go +++ b/weed/pb/filer_pb/filer_pb_helper_test.go @@ -3,7 +3,7 @@ package filer_pb import ( "testing" - "github.com/gogo/protobuf/proto" + "github.com/golang/protobuf/proto" ) func TestFileIdSize(t *testing.T) {