Skip to content

Commit c0adf16

Browse files
committed
wip
1 parent 8ac79c4 commit c0adf16

File tree

12 files changed

+383
-579
lines changed

12 files changed

+383
-579
lines changed

framework/config.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,11 @@ func (d *JSONStrDuration) UnmarshalJSON(b []byte) error {
235235
return errors.New("invalid duration")
236236
}
237237
}
238+
239+
func MustParseDuration(s string) time.Duration {
240+
d, err := time.ParseDuration(s)
241+
if err != nil {
242+
L.Fatal().Msg("cannot parse duration, should be Go format 1h2m3s")
243+
}
244+
return d
245+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[chaos]
2+
wait_before_start = "10s"
3+
namespace = "default"
4+
dashboard_uuids = ["WaspDebug"]
5+
experiment_duration = "20m"
6+
experiment_injection_duration = "10s"
7+
blockchain_http_urls = ["http://localhost:8545"]
8+
reorg_below_finality_threshold = 5
9+
reorg_above_finality_threshold = 10

0 commit comments

Comments
 (0)