mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 16:36:20 +00:00
Merge pull request #1164 from tahoe-lafs/3850-test-version-failure
Make the HTTP version test more robust Fixes: ticket:3850
This commit is contained in:
commit
f977ce2342
0
newsfragments/3850.minor
Normal file
0
newsfragments/3850.minor
Normal file
@ -63,7 +63,22 @@ class HTTPTests(TestCase):
|
||||
def test_version(self):
|
||||
"""
|
||||
The client can return the version.
|
||||
|
||||
We ignore available disk space and max immutable share size, since that
|
||||
might change across calls.
|
||||
"""
|
||||
version = yield self.client.get_version()
|
||||
version[b"http://allmydata.org/tahoe/protocols/storage/v1"].pop(
|
||||
b"available-space"
|
||||
)
|
||||
version[b"http://allmydata.org/tahoe/protocols/storage/v1"].pop(
|
||||
b"maximum-immutable-share-size"
|
||||
)
|
||||
expected_version = self.storage_server.remote_get_version()
|
||||
expected_version[b"http://allmydata.org/tahoe/protocols/storage/v1"].pop(
|
||||
b"available-space"
|
||||
)
|
||||
expected_version[b"http://allmydata.org/tahoe/protocols/storage/v1"].pop(
|
||||
b"maximum-immutable-share-size"
|
||||
)
|
||||
self.assertEqual(version, expected_version)
|
||||
|
Loading…
x
Reference in New Issue
Block a user