diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-07-30 17:01:14 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-07-30 17:01:14 +0300 |
commit | 7f57b6d984affe5ce69d84f7d7b27bcad1ecf655 (patch) | |
tree | 1cb6d2a2d40801b56cdb71a1c83e1401d4d3a3ca /test/test_settings.py | |
parent | a458f50d59ddddfd9de331f45c712fc3600295ec (diff) | |
download | unit-7f57b6d984affe5ce69d84f7d7b27bcad1ecf655.tar.gz unit-7f57b6d984affe5ce69d84f7d7b27bcad1ecf655.tar.bz2 |
Tests: fixed test_settings_idle_timeout.
Diffstat (limited to 'test/test_settings.py')
-rw-r--r-- | test/test_settings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_settings.py b/test/test_settings.py index f8e83c8f..9fb21fd7 100644 --- a/test/test_settings.py +++ b/test/test_settings.py @@ -77,7 +77,7 @@ Content-Length: %d self.assertRegex(data, r'200 OK', 'status send timeout') self.assertLess(len(data), data_len, 'data send timeout') - + @unittest.expectedFailure def test_settings_idle_timeout(self): self.load('empty') @@ -95,7 +95,7 @@ Content-Length: %d 'Host': 'localhost' }, sock=sock) - self.assertEqual(resp, {}, 'idle timeout') + self.assertEqual(resp['status'], 408, 'status body idle timeout') def test_settings_max_body_size(self): self.load('empty') |