From 89219162dd613b58da8f3cd418f4825a5d566da5 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Tue, 7 Apr 2015 18:01:18 -0700 Subject: Refactoring std::chrono out. --- test/cpp/interop/client.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/cpp/interop/client.cc') diff --git a/test/cpp/interop/client.cc b/test/cpp/interop/client.cc index de6c6b7b77..5971dc1aea 100644 --- a/test/cpp/interop/client.cc +++ b/test/cpp/interop/client.cc @@ -138,8 +138,7 @@ std::shared_ptr CreateChannelForTestCase( std::unique_ptr creds; GPR_ASSERT(FLAGS_enable_ssl); grpc::string json_key = GetServiceAccountJsonKey(); - creds = ServiceAccountCredentials(json_key, FLAGS_oauth_scope, - std::chrono::hours(1)); + creds = ServiceAccountCredentials(json_key, FLAGS_oauth_scope, 3600); return CreateTestChannel(host_port, FLAGS_server_host_override, FLAGS_enable_ssl, FLAGS_use_prod_roots, creds); } else if (test_case == "compute_engine_creds") { @@ -152,7 +151,7 @@ std::shared_ptr CreateChannelForTestCase( std::unique_ptr creds; GPR_ASSERT(FLAGS_enable_ssl); grpc::string json_key = GetServiceAccountJsonKey(); - creds = JWTCredentials(json_key, std::chrono::hours(1)); + creds = JWTCredentials(json_key, 3600); return CreateTestChannel(host_port, FLAGS_server_host_override, FLAGS_enable_ssl, FLAGS_use_prod_roots, creds); } else { -- cgit v1.2.3