File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func TestDatastoreListTask(t *testing.T) {
68
68
}
69
69
}()
70
70
71
- now := time .Now ()
71
+ now := time .Unix ( 0 , time . Now (). UnixNano () )
72
72
desc := "Hello, World!"
73
73
74
74
tks := make ([]* task.Task , 0 )
@@ -199,7 +199,7 @@ func TestDatastoreListNameWithIndexes(t *testing.T) {
199
199
}
200
200
}()
201
201
202
- now := time .Now ()
202
+ now := time .Unix ( 0 , time . Now (). UnixNano () )
203
203
desc := "Hello, World!"
204
204
desc2 := "Prefix, Test!"
205
205
@@ -337,7 +337,7 @@ func TestDatastore(t *testing.T) {
337
337
ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
338
338
defer cancel ()
339
339
340
- now := time .Now ()
340
+ now := time .Unix ( time . Now (). Unix (), 0 )
341
341
desc := "hello"
342
342
343
343
id , err := taskRepo .Insert (ctx , & task.Task {
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ func TestDatastore(t *testing.T) {
61
61
ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
62
62
defer cancel ()
63
63
64
- now := time .Now ()
64
+ now := time .Unix ( time . Now (). Unix (), 0 )
65
65
desc := "hello"
66
66
67
67
id , err := taskRepo .Insert (ctx , & task.Task {
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ func TestDatastore(t *testing.T) {
61
61
ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
62
62
defer cancel ()
63
63
64
- now := time .Now ()
64
+ now := time .Unix ( time . Now (). Unix (), 0 )
65
65
desc := "hello"
66
66
67
67
incmplKey := datastore .IncompleteKey ("Task" , nil )
You can’t perform that action at this time.
0 commit comments