Skip to content

Commit 2d73d5a

Browse files
committed
fix(hook-frame): Fix broken digest hook integration test
Signed-off-by: Steffen Vogel <[email protected]>
1 parent c137b31 commit 2d73d5a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/hooks/frame.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ class FrameHook : public Hook {
8686
throw ConfigError(json, "node-config-hook-frame-interval",
8787
"Interval must be greater than zero");
8888
} else if (!strcmp(trigger_str, "sequence")) {
89-
if (!json_is_integer(json))
90-
throw ConfigError(json, "node-config-hook-frame-interval",
89+
if (!json_is_integer(json_interval))
90+
throw ConfigError(json_interval, "node-config-hook-frame-interval",
9191
"Interval must be an integer");
9292

9393
interval = SequenceInterval(json_integer_value(json_interval));

tests/integration/hook-digest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cat > expect.digest <<EOF
5050
1548104309.637440300-6 1548104309.736158700-7 sha256 B296F08F65FB7A2DE522BFBC5187D77D0EDDD898EB45731472999694087A063C
5151
EOF
5252

53-
villas hook frame -o interval=2 < input.dat > frame.dat
53+
villas hook frame -o trigger=sequence -o interval=2 < input.dat > frame.dat
5454
villas hook digest -o algorithm=sha256 -o uri=output.digest < frame.dat > output.dat
5555

5656
villas compare output.dat expect.dat

0 commit comments

Comments
 (0)