fix naming in test and fix test

This commit is contained in:
Barak Michener 2015-06-23 17:38:19 -04:00
parent 390d012fc4
commit 8ee61735b7
3 changed files with 20 additions and 11 deletions

View file

@ -25,9 +25,10 @@ import (
"net/http"
"sync"
"github.com/barakmich/glog"
"appengine"
"appengine/datastore"
"github.com/barakmich/glog"
"github.com/google/cayley/graph"
"github.com/google/cayley/graph/iterator"
@ -86,7 +87,13 @@ type LogEntry struct {
}
func init() {
graph.RegisterQuadStore("gaedatastore", true, newQuadStore, initQuadStore, newQuadStoreForRequest)
graph.RegisterQuadStore("gaedatastore", graph.QuadStoreRegistration{
NewFunc: newQuadStore,
NewForRequestFunc: newQuadStoreForRequest,
UpgradeFunc: nil,
InitFunc: initQuadStore,
IsPersistent: true,
})
}
func initQuadStore(_ string, _ graph.Options) error {