Skip to content

Commit 43d121d

Browse files
yoneyfacebook-github-bot
authored andcommitted
Fix test types
Summary: Use `std::int64_t` for thrift `set<i64>` Reviewed By: vitaut Differential Revision: D69256993 fbshipit-source-id: ce8551331dc20e83ba99b6b801ad26aebab9b184
1 parent ea1bd3b commit 43d121d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

thrift/lib/cpp2/test/ObjectTest.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ TEST(ObjectTest, StructWithMap) {
301301

302302
TEST(ObjectTest, StructWithSet) {
303303
testset::struct_with<type::set<type::i64_t>> s;
304-
std::set<long> setValues = {1, 2, 3};
304+
std::set<std::int64_t> setValues = {1, 2, 3};
305305
s.field_1_ref() = setValues;
306306
Value value = asValueStruct<type::struct_c>(s);
307307
ASSERT_EQ(value.getType(), Value::Type::objectValue);
@@ -471,7 +471,7 @@ TEST(ObjectTest, DirectlyAdaptedStruct) {
471471
TEST(ObjectTest, parseObject) {
472472
folly::IOBufQueue iobufQueue;
473473
testset::struct_with<type::set<type::i64_t>> thriftStruct;
474-
std::set<long> setValues = {1, 2, 3};
474+
std::set<std::int64_t> setValues = {1, 2, 3};
475475
thriftStruct.field_1_ref() = setValues;
476476
BinarySerializer::serialize(thriftStruct, &iobufQueue);
477477
auto serialized = iobufQueue.move();
@@ -485,7 +485,7 @@ TEST(ObjectTest, parseObject) {
485485
TEST(ObjectTest, serializeObject) {
486486
folly::IOBufQueue iobufQueue;
487487
testset::struct_with<type::set<type::i64_t>> thriftStruct;
488-
std::set<long> setValues = {1, 2, 3};
488+
std::set<std::int64_t> setValues = {1, 2, 3};
489489
thriftStruct.field_1_ref() = setValues;
490490
BinarySerializer::serialize(thriftStruct, &iobufQueue);
491491
auto expected = iobufQueue.move();

0 commit comments

Comments
 (0)