Prem Chaitanya Prathi 5561fcb532
fix(tests): replace removed newStandardSwitch with SwitchBuilder
libp2p v2.0.0 dropped the `newStandardSwitch` convenience constructor.
Update `wakucore.newTestSwitch` to use the equivalent SwitchBuilder
chain (`withRng(...).withPrivateKey(...).withAddress(...).withTcp
Transport().withMplex().withNoise().build()`) and replace direct
`newStandardSwitch(...)` call sites in tests with `newTestSwitch(...)`.

Files:
  - tests/testlib/wakucore.nim: rewrite `newTestSwitch` body.
  - tests/waku_filter_v2/test_waku_filter_dos_protection.nim (2 sites)
  - tests/waku_filter_v2/test_waku_client.nim (6 sites)
  - tests/wakunode_rest/test_rest_store.nim (6 sites, also rewrite
    `Opt.some(key)` → `some(key)` since `newTestSwitch` takes
    `std/options.Option`).
2026-06-04 18:34:43 +05:30
..
2026-05-16 00:09:07 +02:00