Skip to content

Commit 5ad8c4f

Browse files
Copilot0xrinegade
andcommitted
Fix feature-gated imports in integration tests to resolve CI errors
Co-authored-by: 0xrinegade <[email protected]>
1 parent ae6d45a commit 5ad8c4f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

rust/tests/integration.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ struct MockStruct {
185185
data: u64,
186186
}
187187

188+
#[cfg(any(feature = "stream", feature = "pyg", feature = "prepay"))]
188189
#[test]
189190
fn test_priority_multiplier_validation() {
190191
use solana_ai_registries::payments::common::{
@@ -224,7 +225,6 @@ fn test_constant_documentation_exists() {
224225
// by checking they compile and have expected values
225226
use solana_ai_registries::agent::*;
226227
use solana_ai_registries::mcp::*;
227-
use solana_ai_registries::payments::common::*;
228228

229229
// Agent constants
230230
assert_eq!(MAX_AGENT_ID_LEN, 64);
@@ -234,6 +234,14 @@ fn test_constant_documentation_exists() {
234234
// MCP constants
235235
assert_eq!(MAX_SERVER_ID_LEN, 64);
236236
assert_eq!(MAX_ONCHAIN_TOOL_DEFINITIONS, 5);
237+
}
238+
239+
#[cfg(any(feature = "stream", feature = "pyg", feature = "prepay"))]
240+
#[test]
241+
fn test_payment_constant_documentation_exists() {
242+
// This test ensures our payment constants are properly documented
243+
// by checking they compile and have expected values
244+
use solana_ai_registries::payments::common::*;
237245

238246
// Payment constants
239247
assert_eq!(A2AMPL_DECIMALS, 9);

0 commit comments

Comments
 (0)