Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix test

Chris Lu126fb492d20b
diff --git a/weed/pb/proto_read_write_test.go b/weed/pb/proto_read_write_test.go
index 79f0785b2b..4c5bca5fe2 100644
--- a/weed/pb/proto_read_write_test.go
+++ b/weed/pb/proto_read_write_test.go
@@ -10,10 +10,10 @@ import (
func TestJsonpMarshalUnmarshal(t *testing.T) {
- tv := &volume_server_pb.TieredVolume{
+ tv := &volume_server_pb.RemoteFile{
BackendType: "aws",
- BackendName: "",
- Version: 12,
+ BackendId: "",
+ FileSize: 12,
}
m := jsonpb.Marshaler{
@@ -29,11 +29,11 @@ func TestJsonpMarshalUnmarshal(t *testing.T) {
rawJson := `{
"backendType":"aws",
- "backendName":"temp",
- "version":12
+ "backendId":"temp",
+ "FileSize":12
}`
- tv1 := &volume_server_pb.TieredVolume{}
+ tv1 := &volume_server_pb.RemoteFile{}
if err := jsonpb.UnmarshalString(rawJson, tv1); err != nil {
fmt.Printf("unmarshal error: %v\n", err)
}