summaryrefslogtreecommitdiff
path: root/tests/bindings/lua/test_upb.pb.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bindings/lua/test_upb.pb.lua')
-rw-r--r--tests/bindings/lua/test_upb.pb.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bindings/lua/test_upb.pb.lua b/tests/bindings/lua/test_upb.pb.lua
index e03df5c..6f0eda9 100644
--- a/tests/bindings/lua/test_upb.pb.lua
+++ b/tests/bindings/lua/test_upb.pb.lua
@@ -25,7 +25,7 @@ local symtab = upb.SymbolTable{
}
local factory = upb.MessageFactory(symtab);
-local TestMessage = factory:get_message_class(symtab:lookup("TestMessage"))
+local TestMessage = factory:get_message_class("TestMessage")
function test_decodermethod()
local decoder = pb.MakeStringToMessageDecoder(TestMessage)
@@ -62,7 +62,7 @@ function test_parse_string()
}
local factory = upb.MessageFactory(symtab);
- local TestMessage = factory:get_message_class(symtab:lookup("TestMessage"))
+ local TestMessage = factory:get_message_class("TestMessage")
local binary_pb = "\010\005Hello"
local decoder = pb.MakeStringToMessageDecoder(TestMessage)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback