Skip to content

Commit

Permalink
test(spanner): flush log on InstanceAdminClientTest failure (#7220)
Browse files Browse the repository at this point in the history
Derive `InstanceAdminClientTest` from `testing_util::IntegrationTest`
so that buffered "lastN" log messages are emitted after a test failure.
  • Loading branch information
devbww authored Aug 26, 2021
1 parent 0ee6071 commit d3a808e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "google/cloud/spanner/update_instance_request_builder.h"
#include "google/cloud/internal/getenv.h"
#include "google/cloud/internal/random.h"
#include "google/cloud/testing_util/integration_test.h"
#include "google/cloud/testing_util/status_matchers.h"
#include <gmock/gmock.h>
#include <algorithm>
Expand Down Expand Up @@ -89,7 +90,8 @@ class CleanupStaleInstances : public ::testing::Environment {
::testing::Environment* const kCleanupEnv =
::testing::AddGlobalTestEnvironment(new CleanupStaleInstances);

class InstanceAdminClientTest : public testing::Test {
class InstanceAdminClientTest
: public ::google::cloud::testing_util::IntegrationTest {
public:
InstanceAdminClientTest()
: generator_(internal::MakeDefaultPRNG()),
Expand Down

0 comments on commit d3a808e

Please sign in to comment.