diff --git a/weed/s3iam/s3iam_filer_store_test.go b/weed/s3iam/s3iam_filer_store_test.go index 2945398ed..5845f1383 100644 --- a/weed/s3iam/s3iam_filer_store_test.go +++ b/weed/s3iam/s3iam_filer_store_test.go @@ -51,7 +51,7 @@ func TestS3Conf(t *testing.T) { }, }, } - content, _ := proto.Marshal(config) + content, err := proto.Marshal(s3Conf) assert.Equal(t, err, nil) s3ConfSaved := &iam_pb.S3ApiConfiguration{} err = ifs.loadIAMConfigFromBytes(content, s3ConfSaved)