Files
pezkuwi-subxt/substrate
Igor Matuszewski 66fe846d48 Fix some flaky offchain HTTP tests (#6038)
* http: Use assert_eq in tests for better debuggability

* http: Use matches! macro instead of if let ...

* http: Simplify some bits and pieces

* http: Don't answer immediately in HTTP test server

Sometimes it can happen that we receive the response immediately
when testing the HTTP api due to kernel scheduling. Because of it, we
add a marginal 10ms async-friendly delay to minimize the risk.

* http: Use the same async runtime when testing HTTP API/worker

* http: Return a future Delay only for non-zero Duration

This allows to short-circuit in the response_wait logic and only
send/not wait for response.
2020-05-22 13:14:26 +02:00
..
2020-05-22 09:04:20 +02:00
2020-05-15 21:56:56 +02:00
2020-05-22 09:04:20 +02:00
2020-04-08 20:11:30 +02:00

Substrate · GitHub license GitLab Status PRs Welcome

Substrate is a next-generation framework for blockchain innovation 🚀.

Trying it out

Simply go to substrate.dev and follow the getting started instructions.

Contributions & Code of Conduct

Please follow the contributions guidelines as outlined in docs/CONTRIBUTING.adoc. In all communications and contributions, this project follows the Contributor Covenant Code of Conduct.

Security

The security policy and procedures can be found in docs/SECURITY.md.

License

Substrate Client (/client/* / sc-*) is licensed under GPL v3.0 with a classpath linking exception, primitives (sp-*), FRAME (frame-*) and pallets (pallets-*), binaries (/bin) and all other utilities are licensed under Apache 2.0.