Skip to content
Snippets Groups Projects
Commit 1e4c8b28 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

rplan: inherit default options from context

parent 0aa66d1a
Branches
Tags
No related merge requests found
......@@ -94,6 +94,7 @@ struct kr_query *kr_rplan_push(struct kr_rplan *rplan, const knot_dname_t *name,
qry->sclass = cls;
qry->stype = type;
qry->flags = rplan->context->options;
gettimeofday(&qry->timestamp, NULL);
add_tail(&rplan->pending, &qry->node);
......
......@@ -20,6 +20,7 @@
#include <libknot/internal/net.h>
#include "tests/test.h"
#include "lib/rplan.h"
#include "lib/resolve.h"
/*
......@@ -50,6 +51,9 @@ static PyObject* init(PyObject* self, PyObject* args)
global_context.cache = kr_cache_open(global_tmpdir, &global_mm, CACHE_SIZE);
assert(global_context.cache);
/* Test context options. */
global_context.options = QUERY_TCP | QUERY_NO_MINIMIZE;
return Py_BuildValue("s", PACKAGE_STRING " (integration tests)");
}
......
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