Skip to content

Commit

Permalink
test: fixes npe on pitr backup test
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagotnunes committed Feb 1, 2021
1 parent 8c34fc3 commit 9faa574
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -64,8 +64,8 @@ public class ITPitrBackupAndRestore {
private static RemoteSpannerHelper testHelper;
private static DatabaseAdminClient dbAdminClient;
private static Database testDatabase;
private static List<Backup> backupsToDrop;
private static List<Database> databasesToDrop;
private static final List<Backup> backupsToDrop = new ArrayList<>();
private static final List<Database> databasesToDrop = new ArrayList<>();

@BeforeClass
public static void doNotRunOnEmulator() {
Expand All @@ -74,8 +74,6 @@ public static void doNotRunOnEmulator() {

@BeforeClass
public static void setUp() throws Exception {
backupsToDrop = new ArrayList<>();
databasesToDrop = new ArrayList<>();
testHelper = env.getTestHelper();
dbAdminClient = testHelper.getClient().getDatabaseAdminClient();
testDatabase = createTestDatabase();
Expand Down

0 comments on commit 9faa574

Please sign in to comment.