Skip to content

Commit

Permalink
fix: fix test for worker
Browse files Browse the repository at this point in the history
  • Loading branch information
Balyuk Dmitrii authored and Balyuk Dmitrii committed Feb 2, 2024
1 parent da381b0 commit 1c912ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/core/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ func unificationFields(event map[string]interface{}, cfgUnifier []models.Unifier
if err != nil {
return fmt.Errorf("failed date parse: %w", err)
}
(*uEvent)[u.Name] = v.Format("2006-01-02 15:04:05")

(*uEvent)[u.Name] = v.Format(time.RFC3339)
}
default:
return fmt.Errorf("unknown type: %v", u.Type)
Expand Down
2 changes: 1 addition & 1 deletion internal/core/worker/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func Test_unificationFields(t *testing.T) {
},
want: want{
key: "testTime",
value: "2023-07-13 13:47:43",
value: "2023-07-13T13:47:43Z",
},
wantErr: false,
},
Expand Down

0 comments on commit 1c912ce

Please sign in to comment.