Skip to content

Commit

Permalink
test: fix pending packets test
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Jan 2, 2025
1 parent b62a2f4 commit c91124d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contracts/os/andromeda-kernel/src/testing/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use andromeda_std::{
error::ContractError,
os::kernel::{
ChannelInfo, ExecuteMsg, IbcExecuteMsg, Ics20PacketInfo, InstantiateMsg, InternalMsg,
QueryMsg,
PendingPacketResponse, QueryMsg,
},
testing::mock_querier::{
mock_dependencies_custom, MOCK_ADODB_CONTRACT, MOCK_FAKE_KERNEL_CONTRACT,
Expand Down Expand Up @@ -591,13 +591,13 @@ fn test_query_pending_packets(
)
.unwrap();

let pending_packets: Vec<Ics20PacketInfo> = from_json(&res).unwrap();
assert_eq!(pending_packets.len(), expected_count);
let pending_packets: PendingPacketResponse = from_json(&res).unwrap();
assert_eq!(pending_packets.packets.len(), expected_count);

// Verify packets are from the correct channel if channel_id is specified
if let Some(channel) = channel_id {
for packet in pending_packets {
assert_eq!(packet.channel, channel);
for packet in pending_packets.packets {
assert_eq!(packet.packet_info.channel, channel);
}
}
}

0 comments on commit c91124d

Please sign in to comment.