Skip to content

Commit

Permalink
rename dataset in multiple code requests
Browse files Browse the repository at this point in the history
- add a sleep post creating queue stash
  • Loading branch information
shubham3121 committed Apr 2, 2024
1 parent 4784d37 commit 176fa7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebooks/api/0.8/06-multiple-code-requests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
]
Expand Down
2 changes: 2 additions & 0 deletions packages/syft/tests/syft/stores/queue_stash_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# stdlib
from threading import Thread
import time
from typing import Any

# third party
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 176fa7c

Please sign in to comment.