Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seionmoya committed Sep 8, 2024
1 parent 8bd7ed9 commit 62ea5d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Fuyu.Tests.Backend.EFT/EndToEnd/BackendTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
using Fuyu.Backend.Core.Servers;
using Fuyu.Backend.Core.DTO.Accounts;
using Fuyu.Backend.EFT.DTO.Bots;
using Fuyu.Common.IO;
using Fuyu.Common.Hashing;

namespace Fuyu.Tests.Backend.EFT.EndToEnd
{
Expand All @@ -37,7 +39,8 @@ public static void AssemblyInitialize(TestContext testContext)

// register fake account
Fuyu.Backend.Core.Services.AccountService.RegisterAccount("test-username", "test-password");
var coreSessionId = Fuyu.Backend.Core.Services.AccountService.LoginAccount("test-username", "test-password");
var hashedPassword = Sha256.Generate("test-password");
var coreSessionId = Fuyu.Backend.Core.Services.AccountService.LoginAccount("test-username", hashedPassword);
Fuyu.Backend.Core.Services.AccountService.RegisterGame(coreSessionId, "eft", "unheard");
var eftAccountId = CoreOrm.GetAccount(coreSessionId).Games["eft"].Value;
var eftSessionId = Fuyu.Backend.EFT.Services.AccountService.LoginAccount(eftAccountId);
Expand Down

0 comments on commit 62ea5d6

Please sign in to comment.