docs: refine gRPC guide section numbers and add CloseAndRecv & fileStore explanations

This commit is contained in:
2026-07-17 22:15:58 +09:00
parent d90553ecdf
commit 50f63633ea
23 changed files with 2964 additions and 130 deletions
+26
View File
@@ -0,0 +1,26 @@
package modular
import (
"net"
"testing"
"time"
)
func TestModularServerClient(t *testing.T) {
// Find an ephemeral port
lis, err := net.Listen("tcp", "127.0.0.1:0")
if err != nil {
t.Fatalf("failed to listen: %v", err)
}
addr := lis.Addr().String()
lis.Close()
// Start server in background
go ServerRun(addr)
// Wait for server to start
time.Sleep(100 * time.Millisecond)
// Run client against the server
ClientRun(addr)
}