lib9p

Go 9P library.
Log | Files | Refs

commit 5ba298f03360d8dcb1ad234b4c396aa481a6a3ea
parent 73057ed29848ed62d363ea708e95156998a18c79
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Mon, 23 Oct 2023 09:44:19 +0900

add sleep to wait for client.Read() is evoked

Diffstat:
Mreq_test.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/req_test.go b/req_test.go @@ -4,6 +4,7 @@ import ( "context" "io" "testing" + "time" ) func TestFlush(t *testing.T) { @@ -72,7 +73,7 @@ func TestFlush(t *testing.T) { }() // I want to send Tflush message after sending Tread and before recieving // Rread. But I think this method is not relyable. - //time.Sleep(10 * time.Millisecond) + time.Sleep(10 * time.Millisecond) tag, err = c.tPool.add() if err != nil { t.Fatalf("add tag: %v", err)