throttle: do not use invalid config in test
commitab08aec45f67a776ea37cee0bf94a34abb84ad97
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 1 Mar 2017 11:50:25 +0000 (1 11:50 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 21 Apr 2017 09:36:12 +0000 (21 10:36 +0100)
treea26d2c99a50a7399609dfd08696b39283e10e0d9
parent01f9cfab8bf73653ff6df066155a01ce7892cf7d
throttle: do not use invalid config in test

The (burst) max parameter cannot be smaller than the avg parameter.
There is a test case that uses avg = 56, max = 1 and gets away with it
because no input validation is performed by the test case.

This patch switches to valid test input parameters.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 20170301115026.22621-3-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/test-throttle.c