11import { type DbChaosConfig } from "@chaos/db" ;
22import type { NetworkChaosConfig } from "@chaos/network" ;
3+ import type { StreamsConfig } from "@chaos/streams" ;
34import { getActiveVersion , type XmtpEnv } from "@helpers/versions" ;
45
56export const NODE_VERSION = getActiveVersion ( ) . nodeBindings ; // default to latest version, can be overridden with --nodeBindings=3.1.1
@@ -22,7 +23,7 @@ export const epochRotationOperations = {
2223export const otherOperations = {
2324 createInstallation : false , // creates a new installation for a random worker
2425 sendMessage : true , // sends a message to the group
25- sync : true , // syncs the group
26+ sync : false , // syncs the group
2627} ;
2728export const randomInboxIdsCount = 50 ; // How many inboxIds to use randomly in the add/remove operations
2829export const installationCount = 2 ; // How many installations to use randomly in the createInstallation operations
@@ -130,7 +131,7 @@ export type RuntimeConfig = {
130131 network : XmtpEnv ; // XMTP network
131132 networkChaos : NetworkChaosConfig | null ; // Network chaos configuration
132133 dbChaos : DbChaosConfig | null ; // Database chaos configuration
133- backgroundStreams : boolean ; //
134+ backgroundStreams : StreamsConfig | null ; //
134135} ;
135136
136137export function getConfigFromEnv ( ) : RuntimeConfig {
@@ -161,7 +162,9 @@ export function printConfig(config: RuntimeConfig): void {
161162 console . info ( `randomInboxIdsCount: ${ randomInboxIdsCount } ` ) ;
162163 console . info ( `installationCount: ${ installationCount } ` ) ;
163164 console . info ( `testName: ${ testName } ` ) ;
164- console . info ( `backgroundStreams: ${ config . backgroundStreams } ` ) ;
165+ console . info (
166+ `backgroundStreams: ${ config . backgroundStreams ? "enabled" : "disabled" } . From separate client instances: ${ config . backgroundStreams ?. cloned } ` ,
167+ ) ;
165168
166169 if ( config . networkChaos ) {
167170 console . info ( "\nNETWORK CHAOS PARAMETERS" ) ;
0 commit comments