From 176fa7c01c3bbd16ce4d52af941d615b6a91b704 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Tue, 2 Apr 2024 18:03:27 +0530 Subject: [PATCH] rename dataset in multiple code requests - add a sleep post creating queue stash --- notebooks/api/0.8/06-multiple-code-requests.ipynb | 4 ++-- packages/syft/tests/syft/stores/queue_stash_test.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/notebooks/api/0.8/06-multiple-code-requests.ipynb b/notebooks/api/0.8/06-multiple-code-requests.ipynb index 8f5ea606dac..9b5ad9eeb2c 100644 --- a/notebooks/api/0.8/06-multiple-code-requests.ipynb +++ b/notebooks/api/0.8/06-multiple-code-requests.ipynb @@ -93,7 +93,7 @@ "metadata": {}, "outputs": [], "source": [ - "dataset2 = sy.Dataset(name=\"My Sample Dataset - II\")\n", + "dataset2 = sy.Dataset(name=\"Age Dataset\")\n", "asset2 = sy.Asset(name=\"Sample Data - II\")\n", "asset2.set_obj(sample_data * 10)\n", "asset2.set_mock(mock_sample_data * 10, mock_is_real=False)\n", @@ -477,7 +477,7 @@ "metadata": {}, "outputs": [], "source": [ - "datasets = ds_client.datasets.search(name=\"My Sample Dataset - II\")\n", + "datasets = ds_client.datasets.search(name=\"Age Dataset\")\n", "dataset_ptr2 = datasets[0]\n", "dataset_ptr2" ] diff --git a/packages/syft/tests/syft/stores/queue_stash_test.py b/packages/syft/tests/syft/stores/queue_stash_test.py index 97efd3df41b..d1fdfa4a10b 100644 --- a/packages/syft/tests/syft/stores/queue_stash_test.py +++ b/packages/syft/tests/syft/stores/queue_stash_test.py @@ -1,5 +1,6 @@ # stdlib from threading import Thread +import time from typing import Any # third party @@ -377,6 +378,7 @@ def helper_queue_update_threading(root_verify_key, create_queue_cbk) -> None: repeats = 5 queue = create_queue_cbk() + time.sleep(1) obj = mock_queue_object() queue.set(root_verify_key, obj, ignore_duplicates=False)