Revise fragile session ID assertions

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.6.0alpha2, 1.6.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This task appears to have failed due to an unexpected newline character in a session ID's raw bytes. Rather than dumping the raw bytes, we should consider converting to hex or making some other assertion that might prevent such a failure.

      TEST 1665/1750 [tests/session/session-getLogicalSessionId-001.phpt]
       [2019/03/03 05:28:19.970] ========DIFF========
       [2019/03/03 05:28:19.970] 005+     string(16) ":�HџN������
       [2019/03/03 05:28:19.970] 006+ 0"
       [2019/03/03 05:28:19.970] 005-     string(16) "%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c"
       [2019/03/03 05:28:19.970] ========DONE========
       [2019/03/03 05:28:19.970] FAIL MongoDB\Driver\Session::getLogicalSessionId() [tests/session/session-getLogicalSessionId-001.phpt]
      

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: