Skip to content

Commit

Permalink
sync node height before making an update call in compliance tests (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk authored Jul 18, 2023
1 parent e727fec commit 99efc33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IC/Test/Agent.hs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ postReadStateCBOR' :: (HasCallStack, HasAgentConfig) => String -> Blob -> GenR -
postReadStateCBOR' ep cid = postCBOR' ep $ "/api/v2/canister/" ++ textual cid ++ "/read_state"

postCallCBOR, postQueryCBOR, postReadStateCBOR :: (HasCallStack, HasAgentConfig) => Blob -> GenR -> IO (Response BS.ByteString)
postCallCBOR cid = postCBOR $ "/api/v2/canister/" ++ textual cid ++ "/call"
postCallCBOR cid = (\r -> sync_height cid >> postCBOR ("/api/v2/canister/" ++ textual cid ++ "/call") r)
postQueryCBOR cid = (\r -> sync_height cid >> postCBOR ("/api/v2/canister/" ++ textual cid ++ "/query") r)
postReadStateCBOR cid = (\r -> sync_height cid >> postReadStateCBOR' endPoint cid r)

Expand Down

0 comments on commit 99efc33

Please sign in to comment.