File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/python/grpcio_tests/tests_aio/unit Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -457,16 +457,16 @@ async def test_time_remaining(self):
457457
458458 # Should be around the same as the timeout
459459 remained_time = call .time_remaining ()
460- self .assertGreater (remained_time , test_constants .SHORT_TIMEOUT * 3 // 2 )
461- self .assertLess (remained_time , test_constants .SHORT_TIMEOUT * 2 )
460+ self .assertGreater (remained_time , test_constants .SHORT_TIMEOUT * 3 / 2 )
461+ self .assertLess (remained_time , test_constants .SHORT_TIMEOUT * 5 / 2 )
462462
463463 response = await call .read ()
464464 self .assertEqual (_RESPONSE_PAYLOAD_SIZE , len (response .payload .body ))
465465
466466 # Should be around the timeout minus a unit of wait time
467467 remained_time = call .time_remaining ()
468- self .assertGreater (remained_time , test_constants .SHORT_TIMEOUT // 2 )
469- self .assertLess (remained_time , test_constants .SHORT_TIMEOUT * 3 // 2 )
468+ self .assertGreater (remained_time , test_constants .SHORT_TIMEOUT / 2 )
469+ self .assertLess (remained_time , test_constants .SHORT_TIMEOUT * 3 / 2 )
470470
471471 self .assertEqual (grpc .StatusCode .OK , await call .code ())
472472
You can’t perform that action at this time.
0 commit comments