Skip to content

Commit cfae6de

Browse files
committed
test: Fix outdated assert
1 parent 6d23a58 commit cfae6de

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

source/Calamari.Tests/AWS/UploadAwsS3CommandFixture.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,7 @@ public async Task UploadPackageWithMetadata()
268268
CannedAcl = "private",
269269
BucketKeyBehaviour = BucketKeyBehaviourType.Filename,
270270
Metadata = specialHeaders.Concat(userDefinedMetadata).ToList(),
271-
Tags = new List<KeyValuePair<string, string>>()
272-
{
273-
new KeyValuePair<string, string>("Environment", "Test")
274-
}
271+
Tags = [new KeyValuePair<string, string>("Environment", "Test")]
275272
}
276273
};
277274

@@ -287,10 +284,7 @@ await Validate(async client =>
287284
{
288285
if (specialHeader.Key == "Expires")
289286
{
290-
//There's a serialization bug in Json.Net that ends up changing the time to local.
291-
//Fix this assertion once that's done.
292-
var expectedDate = DateTime.Parse(specialHeader.Value.TrimEnd('Z')).ToUniversalTime();
293-
response.Expiration.Should().Be(expectedDate);
287+
response.ExpiresString.Should().Be(specialHeader.Value);
294288
}
295289
else if (specialHeader.Key == "x-amz-website-redirect-location")
296290
{

0 commit comments

Comments
 (0)