test w/ auth
This commit is contained in:
@@ -171,6 +171,7 @@ func testREST(t *testing.T) (*REST, func(r *http.Request), func()) {
|
|||||||
os.Setenv("AUTH", "true")
|
os.Setenv("AUTH", "true")
|
||||||
os.Args = os.Args[:1]
|
os.Args = os.Args[:1]
|
||||||
os.Args = os.Args[:1]
|
os.Args = os.Args[:1]
|
||||||
|
config.New()
|
||||||
rest, err := NewREST(storage.NewRateLimitedGraph(""))
|
rest, err := NewREST(storage.NewRateLimitedGraph(""))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user