Skip to content
Snippets Groups Projects
Commit b48e4f80 authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

fix test

parent 3ba3b41a
No related branches found
No related tags found
No related merge requests found
......@@ -4,23 +4,10 @@ import (
"fmt"
"testing"
"github.com/oidc-mytoken/server/internal/config"
"github.com/oidc-mytoken/server/internal/db"
"github.com/oidc-mytoken/server/shared/supertoken/pkg/stid"
)
func TestTree(t *testing.T) {
config.LoadForSetup()
db.Connect()
tree, err := AllTokensForUser(nil, 4)
if err != nil {
t.Error(err)
}
for _, tt := range tree {
tt.print(0)
}
}
func str(tokens []SuperTokenEntry) string {
s := ""
for _, t := range tokens {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment