Skip to content

Commit

Permalink
price_factor: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Jan 8, 2025
1 parent 5faead2 commit 55db265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions daemon/ratelimiting.test/tests-parallel.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ static void *runnable(void *arg)
knot_pkt_t answer = { .wire = wire };
struct kr_request req = {
.qsource.addr = (struct sockaddr *) &addr,
.qsource.price_factor16 = 1 << 16,
.answer = &answer
};

Expand Down
1 change: 1 addition & 0 deletions daemon/ratelimiting.test/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ uint32_t _count_test(int expected_passing, int addr_family, char *addr_format, u
knot_pkt_t answer = { .wire = wire };
struct kr_request req = {
.qsource.addr = (struct sockaddr *) &addr,
.qsource.price_factor16 = 1 << 16,
.answer = &answer
};
char addr_str[40];
Expand Down

0 comments on commit 55db265

Please sign in to comment.