| Index: appengine/logdog/coordinator/backend/util_test.go
|
| diff --git a/appengine/logdog/coordinator/backend/util_test.go b/appengine/logdog/coordinator/backend/util_test.go
|
| index 59a237fc7e7820835cc0f7a4671aca1788c894ee..ac65bbdc3dcb911db2960a20a345a3f946c70a4b 100644
|
| --- a/appengine/logdog/coordinator/backend/util_test.go
|
| +++ b/appengine/logdog/coordinator/backend/util_test.go
|
| @@ -6,16 +6,10 @@ package backend
|
|
|
| import (
|
| "net/http"
|
| - "sort"
|
|
|
| "github.com/julienschmidt/httprouter"
|
| - tq "github.com/luci/gae/service/taskqueue"
|
| - "github.com/luci/luci-go/appengine/logdog/coordinator"
|
| - "github.com/luci/luci-go/common/logdog/types"
|
| "github.com/luci/luci-go/server/middleware"
|
| "golang.org/x/net/context"
|
| -
|
| - . "github.com/smartystreets/goconvey/convey"
|
| )
|
|
|
| // testBase is a middleware.Base which uses its current Context as the base
|
| @@ -29,24 +23,3 @@ func (t *testBase) base(h middleware.Handler) httprouter.Handle {
|
| h(t.Context, w, r, p)
|
| }
|
| }
|
| -
|
| -func shouldHaveTasks(actual interface{}, expected ...interface{}) string {
|
| - a := actual.(map[string]*tq.Task)
|
| - al := make([]string, 0, len(a))
|
| - for _, t := range a {
|
| - al = append(al, t.Name)
|
| - }
|
| -
|
| - tasks := make([]string, len(expected))
|
| - for i, t := range expected {
|
| - tasks[i] = t.(string)
|
| - }
|
| -
|
| - sort.Strings(al)
|
| - sort.Strings(tasks)
|
| - return ShouldResemble(al, tasks)
|
| -}
|
| -
|
| -func archiveTaskName(path string) string {
|
| - return archiveTaskNameForHash(coordinator.LogStreamFromPath(types.StreamPath(path)).HashID())
|
| -}
|
|
|