Skip to content

Commit b75da94

Browse files
committed
Update tests to verify new error code
1 parent d27a42f commit b75da94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/PushNotificationTests/BaseTestSuite.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation and Contributors. All rights reserved.
1+
// Copyright (c) Microsoft Corporation and Contributors. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

44
#include "pch.h"
@@ -279,7 +279,7 @@ void BaseTestSuite::VerifyForegroundHandlerFails()
279279
RegisterWithPushNotificationManager();
280280
if (PushNotificationManager::Default().IsSupported())
281281
{
282-
VERIFY_THROWS_HR(PushNotificationManager::Default().PushReceived([](const auto&, PushNotificationReceivedEventArgs const& /* args */) {}), HRESULT_FROM_WIN32(ERROR_NOT_FOUND));
282+
VERIFY_THROWS_HR(PushNotificationManager::Default().PushReceived([](const auto&, PushNotificationReceivedEventArgs const& /* args */) {}), HRESULT_FROM_WIN32(ERROR_INVALID_HANDLE));
283283
}
284284
else
285285
{

0 commit comments

Comments
 (0)