From 2ec9874321f4e4eca4007126d1a22d883a7e7084 Mon Sep 17 00:00:00 2001 From: mleku Date: Sat, 14 Dec 2024 22:51:59 +0000 Subject: [PATCH] fix error causing test fail --- realy/util_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/realy/util_test.go b/realy/util_test.go index 345e4ac..01ec03b 100644 --- a/realy/util_test.go +++ b/realy/util_test.go @@ -16,7 +16,10 @@ import ( func startTestRelay(c context.T, t *testing.T, tr *testRelay) *Server { t.Helper() srv, _ := NewServer(ServerParams{ - c, func() {}, tr, "", 500 * units.Kb, "", "", nil, + Ctx: c, + Cancel: func() {}, + Rl: tr, + MaxLimit: 500 * units.Kb, }) started := make(chan bo) go srv.Start("127.0.0.1", 0, started)