fix(buffer): dont save bot events when testing

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-02-03 09:42:53 +01:00
parent 10f648fa51
commit de1a4faf28

View File

@@ -39,7 +39,7 @@ export class BotBuffer extends BaseBuffer {
},
});
if (unprocessedCount >= this.batchSize) {
if (unprocessedCount >= this.batchSize && !process.env.TEST_NEW_BUFFER) {
await this.tryFlush();
}
} catch (error) {