@@ -165,16 +165,15 @@ async def test():
165165 # Error logging
166166 self .assertFalse (test_span .error )
167167 self .assertIsNone (test_span .ec )
168- self .assertTrue (aiohttp_span .error )
169- self .assertEqual (aiohttp_span .ec , 1 )
168+ self .assertFalse (aiohttp_span .error )
169+ self .assertIsNone (aiohttp_span .ec )
170170 self .assertIsNone (wsgi_span .error )
171171 self .assertIsNone (wsgi_span .ec )
172172
173173 self .assertEqual ("aiohttp-client" , aiohttp_span .n )
174174 self .assertEqual (405 , aiohttp_span .data .http .status )
175175 self .assertEqual ("http://127.0.0.1:5000/405" , aiohttp_span .data .http .url )
176176 self .assertEqual ("GET" , aiohttp_span .data .http .method )
177- self .assertEqual ('METHOD NOT ALLOWED' , aiohttp_span .data .http .error )
178177 self .assertIsNotNone (aiohttp_span .stack )
179178 self .assertTrue (type (aiohttp_span .stack ) is list )
180179 self .assertTrue (len (aiohttp_span .stack ) > 1 )
@@ -613,8 +612,8 @@ async def test():
613612 # Error logging
614613 self .assertFalse (test_span .error )
615614 self .assertIsNone (test_span .ec )
616- self .assertTrue (aioclient_span .error )
617- self .assertEqual (aioclient_span .ec , 1 )
615+ self .assertFalse (aioclient_span .error )
616+ self .assertIsNone (aioclient_span .ec )
618617 self .assertFalse (aioserver_span .error )
619618 self .assertIsNone (aioserver_span .ec )
620619
@@ -630,7 +629,6 @@ async def test():
630629 self .assertEqual (401 , aioclient_span .data .http .status )
631630 self .assertEqual ("http://127.0.0.1:5002/401" , aioclient_span .data .http .url )
632631 self .assertEqual ("GET" , aioclient_span .data .http .method )
633- self .assertEqual ('I must simulate errors.' , aioclient_span .data .http .error )
634632 self .assertIsNotNone (aioclient_span .stack )
635633 self .assertTrue (type (aioclient_span .stack ) is list )
636634 self .assertTrue (len (aioclient_span .stack ) > 1 )
0 commit comments