M app.go => app.go +1 -17
@@ 45,23 45,7 @@ type FedBOX struct {
logger lw.Logger
}
-var (
- emptyFieldsLogFn = func(lw.Ctx, string, ...any) {}
- emptyLogFn = func(string, ...any) {}
- emptyStopFn = func() {}
- InfoLogFn = func(l lw.Logger) func(lw.Ctx, string, ...any) {
- if l == nil {
- return emptyFieldsLogFn
- }
- return func(f lw.Ctx, s string, p ...any) { l.WithContext(f).Infof(s, p...) }
- }
- ErrLogFn = func(l lw.Logger) func(lw.Ctx, string, ...any) {
- if l == nil {
- return emptyFieldsLogFn
- }
- return func(f lw.Ctx, s string, p ...any) { l.WithContext(f).Errorf(s, p...) }
- }
-)
+var emptyStopFn = func() {}
var InternalIRI = vocab.IRI("https://fedbox/")
M tests/common.go => tests/common.go +2 -3
@@ 899,8 899,8 @@ func runTestSuite(t *testing.T, pairs testPairs) {
}
suite.apps[self.ID] = fb
go func() {
- if err := fb.Run(ctx); err != nil {
- t.Errorf("Err: %+v", err)
+ if err = fb.Run(ctx); err != nil {
+ t.Logf("Err: %+v", err)
}
}()
}
@@ 930,6 930,5 @@ func runTestSuite(t *testing.T, pairs testPairs) {
// to avoid race conditions when running multiple FedBOX instances for the federated tests
cleanDB(t, options)
}
- time.Sleep(100 * time.Millisecond)
}
}