Skip to content
Snippets Groups Projects
Verified Commit 155866a9 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: fix timezon in test #61

parent ab7c566f
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ func (eb *EventBus) Publish(name EventName, data any) { ...@@ -113,7 +113,7 @@ func (eb *EventBus) Publish(name EventName, data any) {
eb.mu.RLock() eb.mu.RLock()
defer eb.mu.RUnlock() defer eb.mu.RUnlock()
Info("EventBus: publishing event %s", name) Info("EventBus: publishing event " + name.String())
select { select {
case <-eb.shutdownChan: case <-eb.shutdownChan:
......
...@@ -95,6 +95,9 @@ func TestCreateJobAndSchedulerFromInput(t *testing.T) { ...@@ -95,6 +95,9 @@ func TestCreateJobAndSchedulerFromInput(t *testing.T) {
func TestJobPersistence_MarshalUnmarshalJSON(t *testing.T) { func TestJobPersistence_MarshalUnmarshalJSON(t *testing.T) {
timeRef := time.Now().Round(time.Second) // Runden, um Genauigkeitsverlust zu vermeiden timeRef := time.Now().Round(time.Second) // Runden, um Genauigkeitsverlust zu vermeiden
// set timezone to UTC
timeRef = timeRef.UTC()
timeRefString := timeRef.Format(time.RFC3339) timeRefString := timeRef.Format(time.RFC3339)
time5m := 5 * time.Minute time5m := 5 * time.Minute
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment