Skip to content

Commit

Permalink
fix error in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlie Davis committed Jun 26, 2024
1 parent 88d911c commit de1c33a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/tests/winrt/tests/collisions.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use windows::{
core::HSTRING,
core::{imp::E_POINTER, HSTRING},
ApplicationModel::Email::EmailAttachment,
Devices::WiFiDirect::{
WiFiDirectConnectionParameters, WiFiDirectDevice, WiFiDirectDeviceSelectorType,
Expand All @@ -16,7 +16,10 @@ fn wifi() -> windows::core::Result<()> {
assert!(!a.is_empty());

// from_id_async from IWiFiDirectDeviceStatics
assert!(WiFiDirectDevice::FromIdAsync(&a)?.get() == Err(windows::core::Error::fail()));
assert!(
WiFiDirectDevice::FromIdAsync(&a)?.get()
== Err(windows::core::Error::from_hresult(E_POINTER))
);

// get_device_selector overload from IWiFiDirectDeviceStatics2 is renamed to get_device_selector2
let c = WiFiDirectDevice::GetDeviceSelector2(WiFiDirectDeviceSelectorType::DeviceInterface)?;
Expand Down

0 comments on commit de1c33a

Please sign in to comment.