Remove some unhandled rejections in tests
Summary: Fixed several tests that caused uncaught promise rejects to fire after the tests finished. This caused jest to fail if there are too many of them. Reviewed By: aigoncharov Differential Revision: D32118124 fbshipit-source-id: 50734dab6dee2efec7f056940af72858b27b1707
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8f3e729b7b
commit
72ce759e61
@@ -9,7 +9,7 @@
|
||||
|
||||
import React from 'react';
|
||||
import {State, Store} from '../reducers/index';
|
||||
import {Logger} from 'flipper-common';
|
||||
import {FlipperServer, Logger} from 'flipper-common';
|
||||
import {FlipperServerImpl} from 'flipper-server-core';
|
||||
import {selectClient} from '../reducers/connections';
|
||||
import Client from '../Client';
|
||||
@@ -168,7 +168,7 @@ export default async (store: Store, logger: Logger) => {
|
||||
};
|
||||
|
||||
export async function handleClientConnected(
|
||||
server: FlipperServerImpl,
|
||||
server: Pick<FlipperServer, 'exec'>,
|
||||
store: Store,
|
||||
logger: Logger,
|
||||
{id, query}: ClientDescription,
|
||||
|
||||
Reference in New Issue
Block a user