Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: task_scheduler/go/db/comments_test.go

Issue 2296763008: [task scheduler] Move files from build_scheduler/ to task_scheduler/ (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « task_scheduler/go/db/comments.go ('k') | task_scheduler/go/db/db.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 package db 1 package db
2 2
3 import ( 3 import (
4 "fmt" 4 "fmt"
5 "testing" 5 "testing"
6 "time" 6 "time"
7 7
8 assert "github.com/stretchr/testify/require" 8 assert "github.com/stretchr/testify/require"
9 9
10 "go.skia.org/infra/go/testutils" 10 "go.skia.org/infra/go/testutils"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 assert.Error(t, db.DeleteTaskSpecComment(sc1)) 267 assert.Error(t, db.DeleteTaskSpecComment(sc1))
268 assert.Error(t, db.DeleteCommitComment(cc1)) 268 assert.Error(t, db.DeleteCommitComment(cc1))
269 269
270 // Assert nothing has changed. 270 // Assert nothing has changed.
271 { 271 {
272 actual, err := db.GetCommentsForRepos([]string{"r1", "r2"}, now. Add(-10000*time.Hour)) 272 actual, err := db.GetCommentsForRepos([]string{"r1", "r2"}, now. Add(-10000*time.Hour))
273 assert.NoError(t, err) 273 assert.NoError(t, err)
274 testutils.AssertDeepEqual(t, expected, actual) 274 testutils.AssertDeepEqual(t, expected, actual)
275 } 275 }
276 } 276 }
OLDNEW
« no previous file with comments | « task_scheduler/go/db/comments.go ('k') | task_scheduler/go/db/db.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698