libp2p-test-plans/transport-interop/src
Alex Potsides fd59ed70fa
fix: handle multiple strings that look like they might be JSON (#361)
The test output can have occurrences of `{` that aren't the string we are looking for, eg:

```
dialer-1    | test browser
dialer-1    | [JavaScript Error: "Clear-Site-Data header found. Unknown value “"cache"”." {file: "http://127.0.0.1:34451/" line: 0}]
dialer-1    | [JavaScript Error: "Clear-Site-Data header forced the clean up of “cookies” data." {file: "http://127.0.0.1:34451/" line: 0}]
dialer-1    | [JavaScript Error: "Clear-Site-Data header forced the clean up of “storage” data." {file: "http://127.0.0.1:34451/" line: 0}]
```

These fail to parse so improve the results parsing by:

1. Try parsing every instance of `{...}` in the output, not just the first
2. Test the output for the `handshakePlusOneRTTMillis` and `pingRTTMilllis` keys
2024-05-07 11:10:40 +01:00
..
compose-runner.ts Rename `multidim-interop` to `transport-interop` (#308) 2023-10-05 14:12:39 +11:00
compose-stdout-helper.ts fix: handle multiple strings that look like they might be JSON (#361) 2024-05-07 11:10:40 +01:00
generator.ts Rename `multidim-interop` to `transport-interop` (#308) 2023-10-05 14:12:39 +11:00
lib.ts Rename `multidim-interop` to `transport-interop` (#308) 2023-10-05 14:12:39 +11:00