Add choice, remove AllMessages scenario

This commit is contained in:
Jon Staab
2024-03-27 14:04:05 -07:00
parent 110ed26efe
commit 46e91c54ec
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -18,6 +18,8 @@ export const flatten = <T>(xs: T[]) => xs.flatMap(identity)
export const uniq = <T>(xs: T[]) => Array.from(new Set(xs))
export const choice = <T>(xs: T[]): T => xs[Math.floor(xs.length * Math.random())]
export const shuffle = <T>(xs: T[]): T[] => xs.sort(() => Math.random() > 0.5 ? 1 : -1)
export const randomId = (): string => Math.random().toString().slice(2)
-2
View File
@@ -92,8 +92,6 @@ export class Router {
WriteRelays = () => this.scenario([this.getUserRelays()]).mode(RelayMode.Write)
AllMessages = () => this.scenario([this.getUserRelays()])
Messages = (pubkeys: string[]) =>
this.scenario([
this.getUserRelays(),