status-go/geth
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
..
account Group tests in a dedicated testing package (#629) 2018-02-08 13:52:47 +01:00
api Add destructive tests (#646) 2018-02-19 17:32:58 +02:00
common Remove //nolint: gas directives from fmt.Fprintf #590 (#656) 2018-02-14 19:58:20 +02:00
jail Remove //nolint: gas directives from fmt.Fprintf #590 (#656) 2018-02-14 19:58:20 +02:00
log Remove //nolint: gas directives from fmt.Fprintf #590 (#656) 2018-02-14 19:58:20 +02:00
mailservice Enable gometalinter on tests and fix static analysis issues #631 (#644) 2018-02-12 13:16:06 +02:00
node Add destructive tests (#646) 2018-02-19 17:32:58 +02:00
notification Update notify interface and mark old one as deprecated 2017-10-24 00:47:09 +03:00
params Enable ethereum metrics collection (#616) 2018-02-05 21:25:40 +02:00
rpc Add a test case to reproduce the issue (#548) 2018-01-11 18:17:41 +01:00
signal Enforce type safety in `NodeCrashEvent` #602 (#607) 2018-02-05 11:37:59 +01:00
transactions Group tests in a dedicated testing package (#629) 2018-02-08 13:52:47 +01:00