Skip to content

Commit 6b4fc76

Browse files
committed
A few photo test fixes
1 parent 978e893 commit 6b4fc76

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

RefreshTests.GameServer/Tests/Photos/PhotoEndpointsTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private void TryUploadPhotoWithInvalidPlan(TestContext context, HttpClient clien
227227
string imageHash = BitConverter.ToString(SHA1.HashData(imageData)).Replace("-", "").ToLower();
228228
context.GetDataStore().WriteToStore(imageHash, imageData);
229229

230-
// bad small image
230+
// bad plan
231231
SerializedPhoto photo = new()
232232
{
233233
Timestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(),
@@ -274,7 +274,6 @@ public void CantUploadPhotoWithMissingAssets()
274274
string badImageHash = BitConverter.ToString(SHA1.HashData(badImageData)).Replace("-", "").ToLower();
275275
// Don't add to store
276276

277-
// content doesn't matter here but let's test like this anyway
278277
ReadOnlySpan<byte> badPlanData = "PLNb m"u8;
279278
string badPlanHash = BitConverter.ToString(SHA1.HashData(badPlanData)).Replace("-", "").ToLower();
280279
// Don't add to store
@@ -301,7 +300,7 @@ public void CantUploadPhotoWithDisallowedAssets()
301300
context.Database.DisallowAsset(badPlanHash, GameAssetType.Plan, "");
302301

303302
this.TryUploadPhotosWithInvalidImage(context, client, user, badImageHash, Unauthorized);
304-
this.TryUploadPhotoWithInvalidPlan(context, client, user, badImageHash, Unauthorized);
303+
this.TryUploadPhotoWithInvalidPlan(context, client, user, badPlanHash, Unauthorized);
305304
}
306305

307306
[Test]

0 commit comments

Comments
 (0)