status-go/geth/api
Dmitry Shulyak b2580c79d7
Add destructive tests (#646)
Network disconnect is introduced by removing default gateway, easily reversible condition.

On my local machine it takes 30 seconds for peers to reconnect after connectivity is restored. As you guess this is not an accident, and there is 30 seconds timeout for dial expiration. This dial expiration is used in p2p.Server to guarantee that peers are not dialed too often.

Additionally I added small script to Makefile to run such tests in docker environment, usage example:

```
make docker-test ARGS="./t/destructive/ -v -network=4"
```
2018-02-19 17:32:58 +02:00
..
api.go Add ConnectionChange API call to backend for handling network state changes 2018-02-16 13:02:41 +01:00
backend.go Add destructive tests (#646) 2018-02-19 17:32:58 +02:00
connection.go Fix comment 2018-02-16 13:02:41 +01:00
connection_test.go Change default connection state to unknown 2018-02-16 13:02:41 +01:00
utils.go Remove async operations from node manager (#584) 2018-02-09 14:37:56 +01:00