systest: deflake timeskew test by preventing it from failing beacon
closes
chaos is stopped in the last layer of the epoch so that it won't affect beacon, recovery from beacon failures take longer and wasn't the goal of this test.
@@ -15,8 +15,11 @@ import (
func TestShortTimeskew(t *testing.T) {
const (
- enableSkew = 10
- stopSkew = enableSkew + 3
+ enableSkew = 9
+ // the chaos needs to end before the first layer
+ // of the next epoch. otherwise it may cause beacon protocol
+ // to fail. and it will take longer time to recover from that
+ stopSkew = enableSkew + 2
stopTest = stopSkew + 5
skewOffset = "-3s" // hare round is 2s
)
