mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-12 05:55:35 +00:00
Make the test more robust.
This commit is contained in:
parent
531fe30b11
commit
6b8a42b043
0
newsfragments/3850.minor
Normal file
0
newsfragments/3850.minor
Normal file
@ -63,7 +63,15 @@ class HTTPTests(TestCase):
|
|||||||
def test_version(self):
|
def test_version(self):
|
||||||
"""
|
"""
|
||||||
The client can return the version.
|
The client can return the version.
|
||||||
|
|
||||||
|
We ignore available disk space since that might change across calls.
|
||||||
"""
|
"""
|
||||||
version = yield self.client.get_version()
|
version = yield self.client.get_version()
|
||||||
|
version[b"http://allmydata.org/tahoe/protocols/storage/v1"].pop(
|
||||||
|
b"available-space"
|
||||||
|
)
|
||||||
expected_version = self.storage_server.remote_get_version()
|
expected_version = self.storage_server.remote_get_version()
|
||||||
|
expected_version[b"http://allmydata.org/tahoe/protocols/storage/v1"].pop(
|
||||||
|
b"available-space"
|
||||||
|
)
|
||||||
self.assertEqual(version, expected_version)
|
self.assertEqual(version, expected_version)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user