diff --git a/__tests__/plugins/network.test.ts b/__tests__/plugins/network.test.ts index f195141f..287e86ec 100644 --- a/__tests__/plugins/network.test.ts +++ b/__tests__/plugins/network.test.ts @@ -108,7 +108,7 @@ describe('network', () => { const netinfo = await network.stop(); await Gatherer.stop(); expect(netinfo[0]).toMatchObject({ - resourceSize: -1, + resourceSize: 0, transferSize: 10, }); }); diff --git a/src/plugins/network.ts b/src/plugins/network.ts index 966c311a..42e86848 100644 --- a/src/plugins/network.ts +++ b/src/plugins/network.ts @@ -104,8 +104,8 @@ export class NetworkManager { status: -1, loadEndTime: -1, responseReceivedTime: -1, - resourceSize: -1, - transferSize: -1, + resourceSize: 0, + transferSize: 0, timings: null, };