Skip to content

Commit

Permalink
Changed std::equal to ElementsAreArray
Browse files Browse the repository at this point in the history
Signed-off-by: artyom-yurin <artem_yrin@mail.ru>
  • Loading branch information
ortyomka authored and MBoldyrev committed Sep 30, 2019
1 parent fe16fbe commit c79819d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/module/irohad/ametsuchi/peer_query_wsv_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ TEST_F(PeerQueryWSVTest, GetPeers) {

auto result = peer_query_->getLedgerPeers();
ASSERT_TRUE(result);
ASSERT_TRUE(std::equal(result->cbegin(), result->cend(), peers.cbegin()));
ASSERT_THAT(result.get(),
testing::ElementsAreArray(peers.cbegin(), peers.cend()));
}

0 comments on commit c79819d

Please sign in to comment.