diff --git a/examples/pubsub/publisher_test.cc b/examples/pubsub/publisher_test.cc index 40b122bc746..b7bea5b1bd2 100644 --- a/examples/pubsub/publisher_test.cc +++ b/examples/pubsub/publisher_test.cc @@ -138,7 +138,7 @@ TEST_F(PublisherTest, TestPublisher) { std::vector topics; EXPECT_TRUE(publisher_->ListTopics(kProjectId, &topics).IsOk()); - EXPECT_EQ(topics.size(), 1); + EXPECT_EQ(topics.size(), static_cast(1)); EXPECT_EQ(topics[0], kTopic); }