diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-06-12 14:20:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 14:20:35 +0300 |
commit | 5ef6628dd8ab47367d899b26bf0d3151df402d5e (patch) | |
tree | 0ed417f2e9c640592193bc18217204ef80ac29f2 | |
parent | f81b19fc242a0e199e10f1d23e2a8adff967e48a (diff) |
Fix check for remote write header in unit tests (#9318)
-rw-r--r-- | exporting/tests/test_exporting_engine.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/exporting/tests/test_exporting_engine.c b/exporting/tests/test_exporting_engine.c index 30b8fd83bc..036db39b30 100644 --- a/exporting/tests/test_exporting_engine.c +++ b/exporting/tests/test_exporting_engine.c @@ -1194,9 +1194,10 @@ static void test_prometheus_remote_write_send_header(void **state) "POST /receive HTTP/1.1\r\n" "Host: test-host\r\n" "Accept: */*\r\n" + "X-Prometheus-Remote-Write-Version: 0.1.0\r\n" "Content-Length: 11\r\n" "Content-Type: application/x-www-form-urlencoded\r\n\r\n"); - expect_value(__wrap_send, len, 125); + expect_value(__wrap_send, len, 167); expect_value(__wrap_send, flags, MSG_NOSIGNAL); assert_int_equal(prometheus_remote_write_send_header(&sock, instance),0); |