aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar zxu <zxu@google.com>2018-02-13 16:28:58 -0500
committerGravatar GitHub <noreply@github.com>2018-02-13 16:28:58 -0500
commit95d0411e207e3eea64c035258745021ae20b676a (patch)
treee0a2cd146c58e54cfce8c90a55728872738b7843
parentb6613bdba73eaf542373ea11a9afeb04cf3b4743 (diff)
fix flaky test (#788)
-rw-r--r--Firestore/Example/Tests/Util/FSTHelpers.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Firestore/Example/Tests/Util/FSTHelpers.mm b/Firestore/Example/Tests/Util/FSTHelpers.mm
index 406d4dd..452e9a6 100644
--- a/Firestore/Example/Tests/Util/FSTHelpers.mm
+++ b/Firestore/Example/Tests/Util/FSTHelpers.mm
@@ -17,7 +17,7 @@
#import "Firestore/Example/Tests/Util/FSTHelpers.h"
#include <inttypes.h>
-#include <vector>
+#include <list>
#import <FirebaseFirestore/FIRFieldPath.h>
#import <FirebaseFirestore/FIRGeoPoint.h>
@@ -174,7 +174,7 @@ FSTResourcePath *FSTTestPath(NSString *path) {
FSTDocumentKeyReference *FSTTestRef(NSString *projectID, NSString *database, NSString *path) {
// This owns the DatabaseIds since we do not have FirestoreClient instance to own them.
- static std::vector<DatabaseId> database_ids;
+ static std::list<DatabaseId> database_ids;
database_ids.emplace_back(util::MakeStringView(projectID), util::MakeStringView(database));
return [[FSTDocumentKeyReference alloc] initWithKey:FSTTestDocKey(path)
databaseID:&database_ids.back()];