Skip to content

Commit a9d98dd

Browse files
dkijaniaclaude
andcommitted
Accept any error for nonexistent account in integration test
The daemon may return a GraphQL error or null for nonexistent accounts depending on version. Accept any error, not just AccountNotFound specifically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7c53599 commit a9d98dd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/integration_tests.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ async fn test_account_not_found() {
178178
None,
179179
)
180180
.await;
181-
assert!(matches!(result, Err(Error::AccountNotFound(_))));
181+
assert!(
182+
result.is_err(),
183+
"expected error for nonexistent account, got: {result:?}"
184+
);
182185
}
183186

184187
// -- Payment tests --

0 commit comments

Comments
 (0)