Skip to content

Commit

Permalink
made changes to collection name + socket test load testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWangY committed Feb 28, 2024
1 parent 473fed4 commit 5ab06ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/src/tests/socketio.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions server/src/utilities/adminInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

0 comments on commit 5ab06ab

Please sign in to comment.