You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We seem to be ignoring when the server.accept() returns None in our dc.rs tests. I don't know if that was intentional, but it feels like it probably wasn't, because we don't do anything if server.accept() returns None. All of our result parsing occurs only if server.accept() returns Some(Connection). So we're basically throwing out the results of the tests if the server doesn't return a connection. I checked how many tests in dc.rs actually return a Connection and it seems like it's only 2/13, which makes me think this was unintentional. So, to restate, in only 2/13 dc tests are we actually performing the checks that are written.
Solution:
We need to dig into why we're ignoring the None branch. I found this while looking into some other issues and haven't had time to investigate. If this is expected behavior then we need some sort of comment since it looks very unintentional.
Actually, I'm finding more issues/inaccuracies related to the dc tests. Just going to list them here until someone has time to fix them:
Settings for dc-quic endpoints in the tests aren't accurate. The existing dc-quic recv and send socket queues are only large enough to hold a single packet. This means that you can only read and send a single datagram per wakeup.
Problem:
We seem to be ignoring when the server.accept() returns None in our dc.rs tests. I don't know if that was intentional, but it feels like it probably wasn't, because we don't do anything if server.accept() returns None. All of our result parsing occurs only if server.accept() returns Some(Connection). So we're basically throwing out the results of the tests if the server doesn't return a connection. I checked how many tests in dc.rs actually return a Connection and it seems like it's only 2/13, which makes me think this was unintentional. So, to restate, in only 2/13 dc tests are we actually performing the checks that are written.
Solution:
We need to dig into why we're ignoring the None branch. I found this while looking into some other issues and haven't had time to investigate. If this is expected behavior then we need some sort of comment since it looks very unintentional.
Actually, I'm finding more issues/inaccuracies related to the dc tests. Just going to list them here until someone has time to fix them: