Skip to content

Commit

Permalink
Use internal setup() for test
Browse files Browse the repository at this point in the history
  • Loading branch information
roblillack committed Dec 13, 2022
1 parent dd37b3c commit de46bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func TestEnsureSecretKeyIsSet(t *testing.T) {
secretKey = nil
MainTemplateLoader = &TemplateLoader{}
MainRouter = &Router{Tree: pathtree.New()}
InitDefaults("prod", "")
setup()
if len(secretKey) == 0 || len(secretKey) != HashBlockSize {
t.Fatalf("Not a valid secret key: %+v", secretKey)
}
Expand Down

0 comments on commit de46bbf

Please sign in to comment.