Skip to content

Commit 9bd16a5

Browse files
committed
Fix missed test
1 parent 0a64cf8 commit 9bd16a5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Diff for: tests/search.test.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -253,15 +253,13 @@ describe.each([
253253

254254
const searchKey = await getKey("Search");
255255

256-
// set the remote instances
256+
// set the remote name and instances
257257
const instanceName = "instance_1";
258-
await masterClient.setRemoteInstances({
259-
[instanceName]: { url: HOST, searchApiKey: searchKey },
258+
await masterClient.updateNetwork({
259+
self: instanceName,
260+
remotes: { [instanceName]: { url: HOST, searchApiKey: searchKey } },
260261
});
261262

262-
//set instance name
263-
await masterClient.setInstanceName(instanceName);
264-
265263
const searchClient = await getClient(permission);
266264

267265
const response = await searchClient.multiSearch<

0 commit comments

Comments
 (0)