', event => {
        if (event.candidate)
            localPc.addIceCandidate(event.candidate);
    });
    exchangeOfferAnswer(localPc, remotePc);

    const remoteDataChannel = await promiseDataChannel;

    localDataChannel.send("test");

    await new Promise(resolve => {
        remoteDataChannel.onmessage = resolve;
    });

    const remoteCandidateStats = [...(await localPc.getStats()).values()].find(({type}) => type === 'remote-candidate');
    assert_not_equals(remoteCandidateStats.address, null,