changeset 3731:7e51cfc36d4e

tests (e2e/CLI/set_get): fix RSM request: items are stored in chronological order in Pubsub, and as we want the more recent one, we need to set `before=''`. Otherwise, we can get a wrong item from a previous test.
author Goffi <goffi@goffi.org>
date Mon, 31 Jan 2022 18:35:52 +0100
parents 43cc8c27adc7
children 0fac164ff2d8
files tests/e2e/libervia-cli/test_libervia-cli.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/e2e/libervia-cli/test_libervia-cli.py	Mon Jan 31 18:35:52 2022 +0100
+++ b/tests/e2e/libervia-cli/test_libervia-cli.py	Mon Jan 31 18:35:52 2022 +0100
@@ -189,7 +189,7 @@
 
     def test_set_get(self, li_json):
         li.blog.set(_in="markdown **bold** [link](https://example.net)")
-        item_data = li_json.blog.get(max=1)
+        item_data = li_json.blog.get(max=1, before="")
         item = item_data[0][0]
         metadata = item_data[1]
         assert metadata['service'] == "account1@server1.test"