lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/42742?usp=email )
Change subject: RemsimServer Tests: give the remsim server some time to update the slotmap ......................................................................
RemsimServer Tests: give the remsim server some time to update the slotmap
The check of the slotmap can race if it is requests straight away, because the slotmap might be still in the slotmap list as long the bankd hasn't responded yet.
Change-Id: I6784e05380d844aa4bb9cde2bbe648ff37bee91b --- M remsim/RemsimServer_Tests.ttcn 1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/42/42742/1
diff --git a/remsim/RemsimServer_Tests.ttcn b/remsim/RemsimServer_Tests.ttcn index 5850d29..de2c478 100644 --- a/remsim/RemsimServer_Tests.ttcn +++ b/remsim/RemsimServer_Tests.ttcn @@ -512,6 +512,9 @@ /* delete the slotmap via REST */ res := f_rsres_delete_slotmap(sm.bank);
+ /* an immediate slotmaps check doesn't work */ + f_sleep(1.0); + /* verify the slotmap is gone */ f_ensure_slotmaps({}); } @@ -549,6 +552,9 @@ /* delete the slotmap via REST */ res := f_rsres_delete_slotmap(sm.bank);
+ /* an immediate slotmaps check doesn't work */ + f_sleep(1.0); + /* verify the slotmap is gone from REST interface immediately */ f_ensure_slotmaps({});
@@ -600,6 +606,9 @@ /* delete the slotmap via REST */ res := f_rsres_delete_slotmap(sm.bank);
+ /* an immediate slotmaps check doesn't work */ + f_sleep(1.0); + /* verify the slotmap is gone from REST interface immediately */ f_ensure_slotmaps({});