Fix tests

This commit is contained in:
jvyden 2021-10-28 20:34:49 -04:00
parent 474556b8a6
commit 4208513978
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
4 changed files with 14 additions and 15 deletions

View file

@ -22,13 +22,9 @@ namespace LBPUnion.ProjectLighthouse.Tests {
}
public async Task<HttpResponseMessage> AuthenticateResponse(int number = 0) {
const char nullChar = (char)0x00;
const string username = "unitTestUser";
string nullString = "";
for(int i = 0; i < 80; i++) nullString += nullChar;
string stringContent = $"{nullString}{username}{number}{nullChar}";
string stringContent = $"{LoginData.UsernamePrefix}{username}{number}{(char)0x00}";
HttpResponseMessage response = await this.Client.PostAsync("/LITTLEBIGPLANETPS3_XML/login", new StringContent(stringContent));
return response;