parser schema CHANGE always return non-const modules
Refs #1645
diff --git a/tests/utests/restriction/test_pattern.c b/tests/utests/restriction/test_pattern.c
index 9298390..ab01ff2 100644
--- a/tests/utests/restriction/test_pattern.c
+++ b/tests/utests/restriction/test_pattern.c
@@ -82,7 +82,7 @@
test_schema_yang(void **state)
{
const char *schema;
- const struct lys_module *mod;
+ struct lys_module *mod;
struct lysc_node_leaf *lysc_leaf;
struct lysp_node_leaf *lysp_leaf;
struct lysc_pattern *pattern;
@@ -181,7 +181,7 @@
test_schema_yin(void **state)
{
const char *schema;
- const struct lys_module *mod;
+ struct lys_module *mod;
struct lysc_node_leaf *lysc_leaf;
struct lysp_node_leaf *lysp_leaf;
struct lysc_pattern *pattern;
@@ -288,7 +288,7 @@
{
const char *schema_yang, *schema_yin;
char *printed;
- const struct lys_module *mod;
+ struct lys_module *mod;
/* test print yang to yin */
schema_yang = MODULE_CREATE_YANG("PRINT0", "leaf port {type string {"