Skip to content

Commit

Permalink
Restore and test for Jenkins timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Sep 3, 2024
1 parent 49fe676 commit 4292b11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Netkan/Sources/Jenkins/JenkinsBuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class JenkinsBuild
public class UnixDateTimeMillisecondsConverter : DateTimeConverterBase
{
public override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)
=> reader.Value is double d
=> reader.Value is long d
? UnixEpoch.AddMilliseconds(d)
: null;

Expand Down
1 change: 1 addition & 0 deletions Tests/NetKAN/Sources/Jenkins/JenkinsApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public void GetLatestBuild_ModuleManager_Works()
// Assert
Assert.IsNotNull(build?.Url);
Assert.IsNotNull(build?.Artifacts);
Assert.IsNotNull(build?.Timestamp);
}

private string? _cachePath;
Expand Down

0 comments on commit 4292b11

Please sign in to comment.