@@ -33,9 +33,9 @@ void should_limit_all_traffic() {
3333 Steadybit .networkLimitBandwidth (attackBandwidth )
3434 .forContainers (target )
3535 .exec (() -> {
36- assertThat (tester .measureBandwidth ()).isCloseTo (this .attackBandwidth .getValue (), withPercentage (10 ));
36+ assertThat (tester .measureBandwidth ()).isCloseTo (this .attackBandwidth .getValue (), withPercentage (15 ));
3737 });
38- assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (10 ));
38+ assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (15 ));
3939 }
4040
4141 @ Test
@@ -46,18 +46,18 @@ void should_limit_all_traffic_using_port_filter() {
4646 .destPort (tester .getDataPort ())
4747 .forContainers (target )
4848 .exec (() -> {
49- assertThat (tester .measureBandwidth ()).isCloseTo (this .attackBandwidth .getValue (), withPercentage (10 ));
49+ assertThat (tester .measureBandwidth ()).isCloseTo (this .attackBandwidth .getValue (), withPercentage (15 ));
5050 });
5151
5252 // mismatch
5353 Steadybit .networkLimitBandwidth (this .attackBandwidth )
5454 .destPort (tester .getDataPort () + 999 )
5555 .forContainers (target )
5656 .exec (() -> {
57- assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (10 ));
57+ assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (15 ));
5858 });
5959
60- assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (10 ));
60+ assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (15 ));
6161 }
6262
6363 @ Test
@@ -68,18 +68,18 @@ void should_limit_all_traffic_using_ip_filter() {
6868 .destAddress (tester .getIperfClientAddress ())
6969 .forContainers (target )
7070 .exec (() -> {
71- assertThat (tester .measureBandwidth ()).isCloseTo (this .attackBandwidth .getValue (), withPercentage (10 ));
71+ assertThat (tester .measureBandwidth ()).isCloseTo (this .attackBandwidth .getValue (), withPercentage (15 ));
7272 });
7373
7474 // mismatch
7575 Steadybit .networkLimitBandwidth (this .attackBandwidth )
7676 .destAddress ("1.1.1.1" )
7777 .forContainers (target )
7878 .exec (() -> {
79- assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (10 ));
79+ assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (15 ));
8080 });
8181
82- assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (10 ));
82+ assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (15 ));
8383 }
8484
8585 @ Test
@@ -91,7 +91,7 @@ void should_limit_all_traffic_using_ip_and_port_filter() {
9191 .destPort (tester .getDataPort ())
9292 .forContainers (target )
9393 .exec (() -> {
94- assertThat (tester .measureBandwidth ()).isCloseTo (this .attackBandwidth .getValue (), withPercentage (10 ));
94+ assertThat (tester .measureBandwidth ()).isCloseTo (this .attackBandwidth .getValue (), withPercentage (15 ));
9595 });
9696
9797 // mismatch address
@@ -100,7 +100,7 @@ void should_limit_all_traffic_using_ip_and_port_filter() {
100100 .destPort (tester .getDataPort ())
101101 .forContainers (target )
102102 .exec (() -> {
103- assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (10 ));
103+ assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (15 ));
104104 });
105105
106106 // mismatch port
@@ -109,10 +109,10 @@ void should_limit_all_traffic_using_ip_and_port_filter() {
109109 .destPort (tester .getDataPort () + 999 )
110110 .forContainers (target )
111111 .exec (() -> {
112- assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (10 ));
112+ assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (15 ));
113113 });
114114
115- assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (10 ));
115+ assertThat (tester .measureBandwidth ()).isCloseTo (this .normalBandwidth .getValue (), withPercentage (15 ));
116116 }
117117
118118}
0 commit comments