Skip to content

Commit a76014f

Browse files
committed
Fix UserTests
1 parent 62e81fb commit a76014f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Parse.Tests/UserTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public async Task TestLogOut()
165165
// Mock LogOutAsync to ensure it can execute its logic
166166
mockCurrentUserController
167167
.Setup(obj => obj.LogOutAsync(It.IsAny<IServiceHub>(), It.IsAny<CancellationToken>()))
168-
.CallBase(); // Use the actual LogOutAsync implementation
168+
.Returns(Task.CompletedTask);
169169

170170
// Mock SessionController for session revocation
171171
var mockSessionController = new Mock<IParseSessionController>();
@@ -182,6 +182,7 @@ public async Task TestLogOut()
182182

183183
// Inject mocks into ParseClient
184184
var client = new ParseClient(new ServerConnectionData { Test = true }, hub);
185+
user.Bind(client);
185186

186187
// Act: Perform logout
187188
await client.LogOutAsync(CancellationToken.None);

0 commit comments

Comments
 (0)