 new RTCPeerConnection();
    t.add_cleanup(() => pc.close());
    const offer = await pc.createOffer();
    const p = Promise.race([
      pc.setRemoteDescription(offer),
      new Promise(r => t.step_timeout(() => r("timeout"), 200))
    ]);
    pc.close();
    assert_equals(await p, "timeout");
    assert_equals(pc.signalingState, "closed", "In closed state");
  }, 'Closing on setRemoteDescription() neither resolves nor rejects');

  promise_test(async t => {
    const pc = new RTCPeerConnection();
    t