X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=testing.go;h=6fb5411267e8c486d454ba384d823f59e9ccc6bd;hb=08c403ea52153a22d6f599e03741fbfce4a0e492;hp=d3f04b669e8c679da3df629b2bdb7294d4661afc;hpb=737bffb73f545f9fd097969124dfeccbdad9b7c9;p=btrtrc.git diff --git a/testing.go b/testing.go index d3f04b66..6fb54112 100644 --- a/testing.go +++ b/testing.go @@ -21,6 +21,9 @@ func TestingConfig(t testing.TB) *ClientConfig { cfg.KeepAliveTimeout = time.Millisecond cfg.MinPeerExtensions.SetBit(pp.ExtensionBitFast, true) cfg.Logger = log.Default.WithContextText(t.Name()) + // 2 would suffice for the greeting test, but 5 is needed for a few other tests. This should be + // something slightly higher than the usual chunk size, so it gets tickled in some tests. + cfg.MaxAllocPeerRequestDataPerConn = 5 //cfg.Debug = true //cfg.Logger = cfg.Logger.WithText(func(m log.Msg) string { // t := m.Text()