Separate Client in server and client part
Summary: This diff separates the concept of a Client as now on the UI, from the concept of a Client as known on the server, and makes all interactions with client and vice versa async. Reviewed By: timur-valiev Differential Revision: D31235682 fbshipit-source-id: 99089e9b390b4c5359f97f6f2b15bf4b182b6cb9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
eab4804792
commit
740093d0d9
@@ -213,7 +213,7 @@ test('new clients replace old ones', async () => {
|
||||
},
|
||||
},
|
||||
);
|
||||
const {client, store, device, createClient} =
|
||||
const {client, store, device, createClient, logger} =
|
||||
await createMockFlipperWithPlugin(plugin, {
|
||||
asBackgroundPlugin: true,
|
||||
});
|
||||
@@ -225,7 +225,7 @@ test('new clients replace old ones', async () => {
|
||||
expect(instance.instanceApi.disconnect).toBeCalledTimes(0);
|
||||
|
||||
const client2 = await createClient(device, 'AnotherApp', client.query, true);
|
||||
handleClientConnected(store, client2);
|
||||
handleClientConnected(null as any, store, logger, client2);
|
||||
|
||||
expect(client2.connected.get()).toBe(true);
|
||||
const instance2 = client2.sandyPluginStates.get(plugin.id)!;
|
||||
|
||||
Reference in New Issue
Block a user