Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
Add review fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Kitsu <[email protected]>
  • Loading branch information
l4l committed Jun 30, 2018
1 parent 8572628 commit 7b40ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/module/shared_model/validators/query_validator_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,9 @@ TEST_F(QueryValidatorTest, StatelessValidTest) {
*/
TEST_F(QueryValidatorTest, UnsetQuery) {
iroha::protocol::Query qry;
auto *meta = new iroha::protocol::QueryPayloadMeta();
meta->set_created_time(created_time);
meta->set_creator_account_id(account_id);
meta->set_query_counter(counter);
qry.mutable_payload()->set_allocated_meta(meta);
qry.mutable_payload()->mutable_meta()->set_created_time(created_time);
qry.mutable_payload()->mutable_meta()->set_creator_account_id(account_id);
qry.mutable_payload()->mutable_meta()->set_query_counter(counter);
auto answer = query_validator.validate(proto::Query(qry));
ASSERT_TRUE(answer.hasErrors());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ TEST_F(TransactionValidatorTest, UnsetCommand) {
tx.mutable_payload()->set_creator_account_id(account_id);
tx.mutable_payload()->set_created_time(created_time);
auto answer = transaction_validator.validate(proto::Transaction(tx));
tx.mutable_payload()->add_commands()->clear_add_asset_quantity();
ASSERT_TRUE(answer.hasErrors());
}

Expand Down

0 comments on commit 7b40ac4

Please sign in to comment.