chore(tests): move filter and lp tests to subdir (#1800)

This commit is contained in:
Danish Arora 2024-01-18 01:28:28 +05:30 committed by GitHub
parent 2e6d9836bf
commit d3bd7f8f7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 14 additions and 21 deletions

View File

@ -20,9 +20,8 @@ import {
MessageCollector, MessageCollector,
ServiceNode, ServiceNode,
tearDownNodes tearDownNodes
} from "../../src/index.js"; } from "../../../src/index.js";
import { runNodes } from "../utils.js";
import { runNodes } from "./utils.js";
describe("Waku Filter V2: Multiple PubsubTopics", function () { describe("Waku Filter V2: Multiple PubsubTopics", function () {
// Set the timeout for all tests in this suite. Can be overwritten at test level // Set the timeout for all tests in this suite. Can be overwritten at test level

View File

@ -7,15 +7,14 @@ import {
MessageCollector, MessageCollector,
ServiceNode, ServiceNode,
tearDownNodes tearDownNodes
} from "../../src/index.js"; } from "../../../src/index.js";
import { import {
runNodes, runNodes,
TestContentTopic, TestContentTopic,
TestDecoder, TestDecoder,
TestEncoder, TestEncoder,
validatePingError validatePingError
} from "./utils.js"; } from "../utils.js";
describe("Waku Filter V2: Ping", function () { describe("Waku Filter V2: Ping", function () {
// Set the timeout for all tests in this suite. Can be overwritten at test level // Set the timeout for all tests in this suite. Can be overwritten at test level

View File

@ -12,15 +12,14 @@ import {
tearDownNodes, tearDownNodes,
TEST_STRING, TEST_STRING,
TEST_TIMESTAMPS TEST_TIMESTAMPS
} from "../../src/index.js"; } from "../../../src/index.js";
import { import {
messageText, messageText,
runNodes, runNodes,
TestContentTopic, TestContentTopic,
TestDecoder, TestDecoder,
TestEncoder TestEncoder
} from "./utils.js"; } from "../utils.js";
describe("Waku Filter V2: FilterPush", function () { describe("Waku Filter V2: FilterPush", function () {
// Set the timeout for all tests in this suite. Can be overwritten at test level // Set the timeout for all tests in this suite. Can be overwritten at test level

View File

@ -20,8 +20,7 @@ import {
ServiceNode, ServiceNode,
tearDownNodes, tearDownNodes,
TEST_STRING TEST_STRING
} from "../../src/index.js"; } from "../../../src/index.js";
import { import {
messagePayload, messagePayload,
messageText, messageText,
@ -29,7 +28,7 @@ import {
TestContentTopic, TestContentTopic,
TestDecoder, TestDecoder,
TestEncoder TestEncoder
} from "./utils.js"; } from "../utils.js";
describe("Waku Filter V2: Subscribe", function () { describe("Waku Filter V2: Subscribe", function () {
// Set the timeout for all tests in this suite. Can be overwritten at test level // Set the timeout for all tests in this suite. Can be overwritten at test level

View File

@ -9,8 +9,7 @@ import {
MessageCollector, MessageCollector,
ServiceNode, ServiceNode,
tearDownNodes tearDownNodes
} from "../../src/index.js"; } from "../../../src/index.js";
import { import {
messagePayload, messagePayload,
messageText, messageText,
@ -18,7 +17,7 @@ import {
TestContentTopic, TestContentTopic,
TestDecoder, TestDecoder,
TestEncoder TestEncoder
} from "./utils.js"; } from "../utils.js";
describe("Waku Filter V2: Unsubscribe", function () { describe("Waku Filter V2: Unsubscribe", function () {
// Set the timeout for all tests in this suite. Can be overwritten at test level // Set the timeout for all tests in this suite. Can be overwritten at test level

View File

@ -14,15 +14,14 @@ import {
ServiceNode, ServiceNode,
tearDownNodes, tearDownNodes,
TEST_STRING TEST_STRING
} from "../../src/index.js"; } from "../../../src/index.js";
import { import {
messagePayload, messagePayload,
messageText, messageText,
runNodes, runNodes,
TestContentTopic, TestContentTopic,
TestEncoder TestEncoder
} from "./utils.js"; } from "../utils.js";
describe("Waku Light Push", function () { describe("Waku Light Push", function () {
// Set the timeout for all tests in this suite. Can be overwritten at test level // Set the timeout for all tests in this suite. Can be overwritten at test level

View File

@ -20,9 +20,8 @@ import {
MessageCollector, MessageCollector,
ServiceNode, ServiceNode,
tearDownNodes tearDownNodes
} from "../../src/index.js"; } from "../../../src/index.js";
import { messageText, runNodes } from "../utils.js";
import { messageText, runNodes } from "./utils.js";
describe("Waku Light Push : Multiple PubsubTopics", function () { describe("Waku Light Push : Multiple PubsubTopics", function () {
this.timeout(30000); this.timeout(30000);