Skip to content

Commit 9a49034

Browse files
committed
Fix: Use run command to capture function output in test
1 parent ce3a754 commit 9a49034

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/integration/exposed-tokens.bats

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ EOF
5252
cat > "$HOME/.openclaw/app.log" << 'EOF'
5353
[2024-05-01 10:00:00] INFO: Authenticating with xoxb-12345-67890-abcdef
5454
EOF
55+
56+
# Verify the token pattern exists
5557
run grep -E "xoxb-" "$HOME/.openclaw/app.log"
5658
[ "$status" -eq 0 ]
5759

58-
check_exposed_tokens
60+
# Run the check and capture output
61+
run check_exposed_tokens
5962

6063
assert_output --partial "[FAIL]"
6164
assert_output --partial "xoxb-"

0 commit comments

Comments
 (0)