diff options
| author | chrislu <chris.lu@gmail.com> | 2024-04-28 12:23:33 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-04-28 12:23:33 -0700 |
| commit | f37862bffe1f2cb232a30afd209970e84517a3e4 (patch) | |
| tree | c8698fa00dd9799bc5e4c38aaa8d02386aa599ac | |
| parent | 7310d022ad369ef1dda43af336698eaf838e72c6 (diff) | |
| download | seaweedfs-f37862bffe1f2cb232a30afd209970e84517a3e4.tar.xz seaweedfs-f37862bffe1f2cb232a30afd209970e84517a3e4.zip | |
compile test
| -rw-r--r-- | weed/mq/schema/schema_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/weed/mq/schema/schema_test.go b/weed/mq/schema/schema_test.go index 973389267..2c12c2465 100644 --- a/weed/mq/schema/schema_test.go +++ b/weed/mq/schema/schema_test.go @@ -34,7 +34,7 @@ func TestField(t *testing.T) { field := &Field{ Name: "field_name", Type: &Type{Kind: &Type_ScalarType{ScalarType: ScalarType_INTEGER}}, - Index: 1, + FieldIndex: 1, IsRepeated: false, } assert.NotNil(t, field) @@ -46,13 +46,13 @@ func TestRecordType(t *testing.T) { { Name: "field_1", Type: &Type{Kind: &Type_ScalarType{ScalarType: ScalarType_INTEGER}}, - Index: 1, + FieldIndex: 1, IsRepeated: false, }, { Name: "field_2", Type: &Type{Kind: &Type_ScalarType{ScalarType: ScalarType_STRING}}, - Index: 2, + FieldIndex: 2, IsRepeated: false, }, }, @@ -62,13 +62,13 @@ func TestRecordType(t *testing.T) { { Name: "field_key", Type: &Type{Kind: &Type_ScalarType{ScalarType: ScalarType_INTEGER}}, - Index: 1, + FieldIndex: 1, IsRepeated: false, }, { Name: "field_record", Type: &Type{Kind: &Type_RecordType{RecordType: subRecord}}, - Index: 2, + FieldIndex: 2, IsRepeated: false, }, }, |
