Skip to content

Commit c9fbf6a

Browse files
committed
Fix test failures
1 parent 93e82fb commit c9fbf6a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Assets/Tests/InputSystem/Plugins/InputForUITests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ public void Shutdown_DoesNotDisableProjectWideActionsAsset()
129129
Assert.That(uiMap.enabled, Is.True, "UI action map should be enabled by provider initialization.");
130130
Assert.That(gameplayMap.enabled, Is.True, "Provider must not change enabled state of non-UI maps.");
131131

132-
EventProvider.ClearMockProvider();
132+
// Call Shutdown directly: ClearMockProvider reinstates the real provider which
133+
// calls RegisterActions() and re-enables the UI map, masking the behavior under test.
134+
m_InputSystemProvider.Shutdown();
133135
m_ClearedMockProvider = true;
134136

135137
// The UI map was disabled before initialization; the provider enabled it, so it must

0 commit comments

Comments
 (0)