Commit 1166b5fd authored by Jakob Olsson's avatar Jakob Olsson

gitlab-ci: unit-test: include easy.h to accomodate header changes

parent a39f19fb
Pipeline #905 passed with stages
in 1 minute and 51 seconds
......@@ -12,6 +12,7 @@
#include <json-editor.h>
#include <json-c/json_tokener.h>
#include <easy/easy.h>
#include <wifi.h>
#include "wifimngr.h"
......@@ -241,7 +242,7 @@ static void test_api_wps_start(void **state)
assert_int_equal(json_object_get_int(tmp), WPS_REGISTRAR);
tmp = json_object_get_by_string(jobj, "mode");
assert_int_equal(json_object_get_int(tmp), WPS_MODE_PIN);
assert_int_equal(json_object_get_int(tmp), WPS_METHOD_PIN);
tmp = json_object_get_by_string(jobj, "pin");
assert_int_equal(json_object_get_int64(tmp), strtoul(PIN, NULL, 10));
......@@ -277,7 +278,7 @@ static void test_api_wps_start(void **state)
assert_string_equal(json_object_get_string(tmp), TWO_IFACE);
tmp = json_object_get_by_string(jobj, "mode");
assert_int_equal(json_object_get_int(tmp), WPS_MODE_PBC);
assert_int_equal(json_object_get_int(tmp), WPS_METHOD_PBC);
json_object_put(jobj);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment