@cryptotaxi247 / netdata-1 / commits / 5ef6628dd

Fix check for remote write header in unit tests (#9318)

Vladimir Kobal committed Jun 12, 2020 at 14:20 UTC 5ef6628dd8ab47367d899b26bf0d3151df402d5e
1 file changed +2 -1
exporting/tests/test_exporting_engine.c
+2 -1
@@ -1194,9 +1194,10 @@ static void test_prometheus_remote_write_send_header(void **state)
1194 "POST /receive HTTP/1.1\r\n"
1195 "Host: test-host\r\n"
1196 "Accept: */*\r\n"
1197 + "X-Prometheus-Remote-Write-Version: 0.1.0\r\n"
1198 "Content-Length: 11\r\n"
1199 "Content-Type: application/x-www-form-urlencoded\r\n\r\n");
1199 - expect_value(__wrap_send, len, 125);
1200 + expect_value(__wrap_send, len, 167);
1201 expect_value(__wrap_send, flags, MSG_NOSIGNAL);
1202
1203 assert_int_equal(prometheus_remote_write_send_header(&sock, instance),0);