Skip to content

Commit

Permalink
Drozdziak1/version bump and comments (#96)
Browse files Browse the repository at this point in the history
* test_integration.py: clarify comments

* Cargo.toml: Bump version to v2.4.0
  • Loading branch information
drozdziak1 authored Nov 29, 2023
1 parent 3bc2d5a commit 5e0f357
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyth-agent"
version = "2.3.1"
version = "2.4.0"
edition = "2021"

[[bin]]
Expand Down
6 changes: 4 additions & 2 deletions integration-tests/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,11 +756,13 @@ async def test_agent_respects_market_hours(self, client: PythAgentClient):
await client.update_price(price_account, 42, 2, "trading")
time.sleep(2)

# Send another "update_price" request to trigger aggregation
# Send another update_price request to "trigger" aggregation
# (aggregation would happen if market hours were to fail, but
# we want to catch that happening if there's a problem)
await client.update_price(price_account, 81, 1, "trading")
time.sleep(2)

# Confirm that the price account has been updated with the values from the first "update_price" request
# Confirm that the price account has not been updated
final_product_state = await client.get_product(product_account)

final_price_account = final_product_state["price_accounts"][0]
Expand Down

0 comments on commit 5e0f357

Please sign in to comment.