mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
test: fix task creation
This commit is contained in:
parent
1e06957028
commit
233f695c9d
@ -191,7 +191,7 @@ func addTask() *db.Task {
|
|||||||
UserID: &userPathTestUser.ID,
|
UserID: &userPathTestUser.ID,
|
||||||
Created: db.GetParsedTime(time.Now()),
|
Created: db.GetParsedTime(time.Now()),
|
||||||
}
|
}
|
||||||
_, err := store.CreateTask(t)
|
t, err := store.CreateTask(t)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("error during insertion of task:")
|
fmt.Println("error during insertion of task:")
|
||||||
if j, err := json.Marshal(t); err == nil {
|
if j, err := json.Marshal(t); err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user