Skip to content

Commit 417605e

Browse files
committed
fix storage sample autorun
1 parent ae0c350 commit 417605e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google/cloud/storage/examples/storage_client_initialization_samples.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ void RunAll(std::vector<std::string> const& argv) {
192192
std::cout << "\nRunning ExplicitADCs()" << std::endl;
193193
ExplicitADCs({bucket_name, object_name});
194194

195+
std::cout << "\nRunning SetClientUniverseDomain()" << std::endl;
196+
SetClientUniverseDomain({bucket_name, object_name});
197+
195198
auto const filename = google::cloud::internal::GetEnv(
196199
"GOOGLE_CLOUD_CPP_STORAGE_TEST_KEY_FILE_JSON");
197200
if (filename.has_value()) {
@@ -201,9 +204,6 @@ void RunAll(std::vector<std::string> const& argv) {
201204

202205
if (!examples::UsingEmulator()) std::this_thread::sleep_until(delete_after);
203206
(void)examples::RemoveBucketAndContents(client, bucket_name);
204-
205-
std::cout << "\nRunning SetClientUniverseDomain()" << std::endl;
206-
SetClientUniverseDomain({bucket_name, object_name});
207207
}
208208

209209
} // namespace

0 commit comments

Comments
 (0)