Skip to content

Commit

Permalink
tests/net_hosted/ssl_verify_callback.py: Make exp match actual output.
Browse files Browse the repository at this point in the history
The `cert` argument passed to the verify callback is actually a memoryview.
And the `depth` argument seems to start at 1 for the tested URL.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed May 27, 2024
1 parent 1a2fdca commit e1111d8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/net_hosted/ssl_verify_callback.py.exp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
verify_callback: <class 'bytes'> True 2
verify_callback: <class 'bytes'> True 1
verify_callback: <class 'bytes'> True 0
verify_callback_fail: <class 'bytes'> True 2
verify_callback: <class 'memoryview'> True 1
verify_callback: <class 'memoryview'> True 0
verify_callback_fail: <class 'memoryview'> True 1
MBEDTLS_ERR_ERROR_GENERIC_ERROR

0 comments on commit e1111d8

Please sign in to comment.