Skip to content

Commit 95d0411

Browse files
authored
fix flaky test (firebase#788)
1 parent b6613bd commit 95d0411

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firestore/Example/Tests/Util/FSTHelpers.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#import "Firestore/Example/Tests/Util/FSTHelpers.h"
1818

1919
#include <inttypes.h>
20-
#include <vector>
20+
#include <list>
2121

2222
#import <FirebaseFirestore/FIRFieldPath.h>
2323
#import <FirebaseFirestore/FIRGeoPoint.h>
@@ -174,7 +174,7 @@
174174

175175
FSTDocumentKeyReference *FSTTestRef(NSString *projectID, NSString *database, NSString *path) {
176176
// This owns the DatabaseIds since we do not have FirestoreClient instance to own them.
177-
static std::vector<DatabaseId> database_ids;
177+
static std::list<DatabaseId> database_ids;
178178
database_ids.emplace_back(util::MakeStringView(projectID), util::MakeStringView(database));
179179
return [[FSTDocumentKeyReference alloc] initWithKey:FSTTestDocKey(path)
180180
databaseID:&database_ids.back()];

0 commit comments

Comments
 (0)