mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-26 09:33:10 +00:00
* new lightpush tests * fixes after CI run * split tests into 2 files * small fix * address code review comments * small fix after CI run --------- Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
24 lines
495 B
TypeScript
24 lines
495 B
TypeScript
import { LightNode } from "@waku/interfaces";
|
|
import debug from "debug";
|
|
|
|
import { NimGoNode } from "./index.js";
|
|
|
|
const log = debug("waku:test");
|
|
|
|
export function tearDownNodes(
|
|
nwakuNodes: NimGoNode[],
|
|
wakuNodes: LightNode[]
|
|
): void {
|
|
nwakuNodes.forEach((nwaku) => {
|
|
if (nwaku) {
|
|
nwaku.stop().catch((e) => log("Nwaku failed to stop", e));
|
|
}
|
|
});
|
|
|
|
wakuNodes.forEach((waku) => {
|
|
if (waku) {
|
|
waku.stop().catch((e) => log("Waku failed to stop", e));
|
|
}
|
|
});
|
|
}
|