Enable Debug Output for tests

This commit is contained in:
Samuel Lorch 2023-11-24 11:28:38 +01:00
parent a6a98a6887
commit 360cc3748e

View file

@ -31,6 +31,9 @@ func TestMain(m *testing.M) {
panic(fmt.Errorf("Creating Registration Client: %w", err)) panic(fmt.Errorf("Creating Registration Client: %w", err))
} }
// Debug Output
rc.Debug = true
ctx := context.TODO() ctx := context.TODO()
privkey, err := SetupAccount(ctx, rc, userID, token, "password123") privkey, err := SetupAccount(ctx, rc, userID, token, "password123")
@ -43,6 +46,9 @@ func TestMain(m *testing.M) {
panic(fmt.Errorf("Setup Client: %w", err)) panic(fmt.Errorf("Setup Client: %w", err))
} }
// Debug Output
c.Debug = true
c.Login(ctx) c.Login(ctx)
if err != nil { if err != nil {
panic(fmt.Errorf("Login Client: %w", err)) panic(fmt.Errorf("Login Client: %w", err))