import { waitJobs } from './jobs' ; import { PeerTubeServer } from './server' ; async function doubleFollow ( server1 , server2 ) { await Promise . all ( [ server1 . follows . follow ( { hosts : [ server2 . url ] } ) , server2 . follows . follow ( { hosts : [ server1 . url ] } ) ] ) ; await waitJobs ( [ server1 , server2 ] ) ; return true ; } export { doubleFollow } ;