aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-12-02 15:52:33 -0800
committerChris Lu <chris.lu@gmail.com>2019-12-02 15:52:33 -0800
commit126fb492d20b0b27d93eaea8e493953c42fa2e3c (patch)
tree6e2da95fff7a69d8f09801a857f2923813e5d69c
parentec8de250e28b3356bb29b273baa557852f3c000b (diff)
downloadseaweedfs-126fb492d20b0b27d93eaea8e493953c42fa2e3c.tar.xz
seaweedfs-126fb492d20b0b27d93eaea8e493953c42fa2e3c.zip
fix test
-rw-r--r--weed/pb/proto_read_write_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/weed/pb/proto_read_write_test.go b/weed/pb/proto_read_write_test.go
index 79f0785b2..4c5bca5fe 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)
}