Skip to content

Commit ac4d08a

Browse files
committed
debug UsingEmulator
1 parent 6219e17 commit ac4d08a

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

google/cloud/storage/testing/storage_integration_test.cc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,17 @@ EncryptionKeyData StorageIntegrationTest::MakeEncryptionKeyData() {
195195

196196
bool StorageIntegrationTest::UsingEmulator() {
197197
auto emulator = EmulatorEndpoint();
198-
if (emulator) return true;
199-
return google::cloud::internal::GetEnv("CLOUD_STORAGE_TESTBENCH_ENDPOINT")
200-
.has_value();
198+
if (emulator) {
199+
std::cout << __func__ << ": UsingEmulator1 == true" << std::endl;
200+
return true;
201+
}
202+
auto foo = google::cloud::internal::GetEnv("CLOUD_STORAGE_TESTBENCH_ENDPOINT")
203+
.has_value();
204+
std::cout << __func__ << ": UsingEmulator2 == " << (foo ? "true" : "false")
205+
<< std::endl;
206+
return foo;
207+
// return google::cloud::internal::GetEnv("CLOUD_STORAGE_TESTBENCH_ENDPOINT")
208+
// .has_value();
201209
}
202210

203211
bool StorageIntegrationTest::UsingGrpc() {

google/cloud/storage/tests/signed_url_conformance_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ TEST_P(V4PostPolicyConformanceTest, V4PostPolicy) {
310310
EXPECT_EQ(expected_signature, doc_res->signature);
311311
EXPECT_EQ((std::map<std::string, std::string>(fields.begin(), fields.end())),
312312
doc_res->required_form_fields);
313-
EXPECT_TRUE(false);
313+
// EXPECT_TRUE(false);
314314
}
315315

316316
INSTANTIATE_TEST_SUITE_P(

0 commit comments

Comments
 (0)