mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
THRIFT-1789 fix json protocol read set begin
Patch: Kevin Radloff
This commit is contained in:
parent
a1e36f6ee5
commit
772b2b1804
@ -717,6 +717,7 @@ module Thrift
|
||||
|
||||
def read_set_begin
|
||||
read_json_array_start
|
||||
[get_type_id_for_type_name(read_json_string), read_json_integer]
|
||||
end
|
||||
|
||||
def read_set_end
|
||||
|
@ -435,8 +435,8 @@ describe 'JsonProtocol' do
|
||||
end
|
||||
|
||||
it "should read set begin" do
|
||||
@trans.write("[")
|
||||
@prot.read_set_begin.should == nil
|
||||
@trans.write("[\"rec\",2\"\"")
|
||||
@prot.read_set_begin.should == [12, 2]
|
||||
end
|
||||
|
||||
it "should read set end" do
|
||||
|
Loading…
Reference in New Issue
Block a user