packageutilimport("errors""testing"context"github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context")funcTestLogErrorDoesNotBlockWhenCtxIsNotSetUpForLogging(t*testing.T){ctx:=context.Background()LogError(ctx,errors.New("ignore me"))}funcTestLogErrorReceivedByParent(t*testing.T){expected:=errors.New("From child to parent")ctx,errs:=ContextWithErrorLog(context.Background())gofunc(){LogError(ctx,expected)}()iferr:=<-errs;err!=expected{t.Fatal("didn't receive the expected error")}}