From 5ab06abec3d5f768d769a7675336e3dd7e217eb6 Mon Sep 17 00:00:00 2001 From: AlexanderWangY Date: Wed, 28 Feb 2024 13:21:45 -0500 Subject: [PATCH] made changes to collection name + socket test load testing --- server/src/tests/socketio.test.ts | 2 +- server/src/utilities/adminInit.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/tests/socketio.test.ts b/server/src/tests/socketio.test.ts index 51dc456f7..3a882e058 100644 --- a/server/src/tests/socketio.test.ts +++ b/server/src/tests/socketio.test.ts @@ -13,7 +13,7 @@ describe("socket-load-tests", () => { let httpServer; let httpServerAddr; let ioServer; - const numClients = 100; // Adjust the number of clients as needed. Do not go over 300 to prevent being blocked by Firebase. + const numClients = 20; // Adjust the number of clients as needed. Do not go over 300 to prevent being blocked by Firebase. beforeAll((done) => { httpServer = createServer().listen(); diff --git a/server/src/utilities/adminInit.ts b/server/src/utilities/adminInit.ts index a96ac473c..6c1270a89 100644 --- a/server/src/utilities/adminInit.ts +++ b/server/src/utilities/adminInit.ts @@ -6,7 +6,7 @@ export const adminApp = admin.initializeApp({ }); export const db = admin.firestore(); -export const connectedUsersCollection = db.collection('users'); -export const messagesCollection = db.collection('messages'); +export const connectedUsersCollection = db.collection('ConnectedUsers'); +export const messagesCollection = db.collection('Messages'); console.log("[FIREBASE-ADMIN] Firebase admin SDK synced.") \ No newline at end of file