Skip to content

Commit

Permalink
test(scheduler/persistentcache): add uint test for host manager (#3812)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Feb 10, 2025
1 parent 2b75f86 commit 5bf9dd1
Show file tree
Hide file tree
Showing 4 changed files with 1,188 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scheduler/resource/persistentcache/host_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ func (h *hostManager) Store(ctx context.Context, host *Host) error {
"build_go_version", host.Build.GoVersion,
"build_platform", host.Build.Platform,
"scheduler_cluster_id", host.SchedulerClusterID,
"announce_interval", host.AnnounceInterval,
"announce_interval", host.AnnounceInterval.Nanoseconds(),
"created_at", host.CreatedAt.Format(time.RFC3339),
"updated_at", host.UpdatedAt.Format(time.RFC3339)).Result(); err != nil {
return err
Expand Down
Loading

0 comments on commit 5bf9dd1

Please sign in to comment.