lib9p

Go 9P library.
Log | Files | Refs | LICENSE

commit 64d44b1bf45854d510808f0a39db016691dcf9ca
parent e0ee55e93ae9965b98855096295edb021993dee2
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Fri, 29 Dec 2023 09:36:00 +0900

use unexported reqPool in whitebox test

Diffstat:
Mserver2_test.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server2_test.go b/server2_test.go @@ -31,7 +31,7 @@ func TestRunListener(t *testing.T) { } oldReqPoolAdd := reqPoolAdd defer func() { reqPoolAdd = oldReqPoolAdd }() - reqPoolAdd = func(*ReqPool, uint16) (*request, error) { return &request{}, nil } + reqPoolAdd = func(*reqPool, uint16) (*request, error) { return &request{}, nil } ctx, cancel := context.WithCancel(context.Background()) defer cancel() s.runListener(ctx, newReqPool())