Skip to content

Commit

Permalink
removed get_node_log test
Browse files Browse the repository at this point in the history
  • Loading branch information
antbaez9 committed Aug 6, 2024
1 parent fbf00c6 commit f6897ab
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions distributask/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,23 +383,23 @@ def test_create_instance(mock_put):

assert instance["new_contract"] == "instance1"

def test_get_node_log():
# def test_get_node_log():

distributask = create_from_config()
# distributask = create_from_config()

max_price = 0.5
max_nodes = 1
image = "antbaez/distributask-test-worker:latest"
module_name = "distributask.example.worker"
# max_price = 0.5
# max_nodes = 1
# image = "antbaez/distributask-test-worker"
# module_name = "distributask.example.worker"

nodes = distributask.rent_nodes(max_price, max_nodes, image, module_name)
# nodes = distributask.rent_nodes(max_price, max_nodes, image, module_name)

time.sleep(60)
# time.sleep(60)

response = distributask.get_node_log(nodes[0], wait_time=5)
# response = distributask.get_node_log(nodes[0], wait_time=5)

assert response is not None
assert response.status_code == 200
# assert response is not None
# assert response.status_code == 200


from io import StringIO
Expand Down

0 comments on commit f6897ab

Please sign in to comment.