Skip to content

test: add context to webhook secret assertion - #955

Merged
graceuvala-collab merged 1 commit into
StellarGateLabs:mainfrom
jiyiola396-pixel:fix/564-descriptive-expect
Oct 22, 2026
Merged

graceuvala-collab merged 1 commit into
StellarGateLabs:mainfrom
jiyiola396-pixel:fix/564-descriptive-expect

Conversation

@jiyiola396-pixel

Copy link
Copy Markdown
Contributor

Replace the bare .unwrap() in validate_webhook_secret_valid with a descriptive .expect(...) message. This makes failures clearer if a valid webhook secret is unexpectedly rejected, without changing production behavior.

The issue’s cited WebhookPayloadDetail::parse("full") call is absent from the current checkout; this applies the requested diagnostic improvement to the closest matching test.

closes #564

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use a descriptive .expect("...") instead of bare .unwrap() in test: src/config.rs:1997

2 participants