Skip to content
Snippets Groups Projects
Commit bee88c9b authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

fix test

parent e9a65c09
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,14 @@ else:
print("should be error sending id 0 ")
sys.exit(1)
#send to another substream
producer.send_data(1, stream+"/"+"file9",None,
ingest_mode = asapo_producer.INGEST_MODE_TRANSFER_METADATA_ONLY, substream="stream", callback = callback)
# wait normal requests finished before sending duplicates
producer.wait_requests_finished(50000)
#send single file once again
producer.send_file(1, local_path = "./file1", exposed_path = stream+"/"+"file1", user_meta = '{"test_key":"test_val"}', callback = callback)
#send metadata only once again
......@@ -100,10 +108,6 @@ producer.send_file(1, local_path = "./file1", exposed_path = stream+"/"+"file1",
producer.send_data(6, stream+"/"+"file8",None,
ingest_mode = asapo_producer.INGEST_MODE_TRANSFER_METADATA_ONLY, callback = callback)
#send to another substream
producer.send_data(1, stream+"/"+"file9",None,
ingest_mode = asapo_producer.INGEST_MODE_TRANSFER_METADATA_ONLY, substream="stream", callback = callback)
producer.wait_requests_finished(50000)
n = producer.get_requests_queue_size()
assert_eq(n,0,"requests in queue")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment