diff options
author | Michael Mair-Keimberger <mmk@levelnine.at> | 2022-02-08 18:15:49 +0100 |
---|---|---|
committer | Stephan Hartmann <sultan@gentoo.org> | 2022-02-08 19:15:02 +0100 |
commit | bb87817a66e82c45bee3b0fae643046a50bff975 (patch) | |
tree | 56d015393975681a0c75ee8f3dd73fa286ec1a52 /net-misc | |
parent | sys-kernel/vanilla-sources: Linux 5.16.8 (diff) | |
download | gentoo-bb87817a66e82c45bee3b0fae643046a50bff975.tar.gz gentoo-bb87817a66e82c45bee3b0fae643046a50bff975.tar.bz2 gentoo-bb87817a66e82c45bee3b0fae643046a50bff975.zip |
net-misc/croc: remove unused patch
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/24131
Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/croc/files/croc-9.4.2-tcp-const.patch | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/net-misc/croc/files/croc-9.4.2-tcp-const.patch b/net-misc/croc/files/croc-9.4.2-tcp-const.patch deleted file mode 100644 index bcd6823983b9..000000000000 --- a/net-misc/croc/files/croc-9.4.2-tcp-const.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 2ffb20201c00a4de9c8082c909e2428c2b46d5c2 Mon Sep 17 00:00:00 2001 -From: jolheiser <john.olheiser@gmail.com> -Date: Sun, 3 Oct 2021 16:23:29 -0500 -Subject: [PATCH] Fix TCP constant - -Signed-off-by: jolheiser <john.olheiser@gmail.com> ---- - src/tcp/tcp.go | 7 +++---- - src/tcp/tcp_test.go | 4 ++-- - 2 files changed, 5 insertions(+), 6 deletions(-) - -diff --git a/src/tcp/tcp.go b/src/tcp/tcp.go -index 2714e5f1..d271756b 100644 ---- a/src/tcp/tcp.go -+++ b/src/tcp/tcp.go -@@ -37,10 +37,9 @@ type roomMap struct { - sync.Mutex - } - --const ( -- timeToRoomDeletion = 10 * time.Minute -- pingRoom = "pinglkasjdlfjsaldjf" --) -+const pingRoom = "pinglkasjdlfjsaldjf" -+ -+var timeToRoomDeletion = 10 * time.Minute - - // Run starts a tcp listener, run async - func Run(debugLevel, host, port, password string, banner ...string) (err error) { -diff --git a/src/tcp/tcp_test.go b/src/tcp/tcp_test.go -index 165f9537..6ba99677 100644 ---- a/src/tcp/tcp_test.go -+++ b/src/tcp/tcp_test.go -@@ -25,13 +25,13 @@ func TestTCP(t *testing.T) { - log.SetLevel("error") - timeToRoomDeletion = 100 * time.Millisecond - go Run("debug", "localhost", "8281", "pass123", "8282") -- time.Sleep(100 * time.Millisecond) -+ time.Sleep(timeToRoomDeletion) - err := PingServer("localhost:8281") - assert.Nil(t, err) - err = PingServer("localhost:8333") - assert.NotNil(t, err) - -- time.Sleep(100 * time.Millisecond) -+ time.Sleep(timeToRoomDeletion) - c1, banner, _, err := ConnectToTCPServer("localhost:8281", "pass123", "testRoom", 1*time.Minute) - assert.Equal(t, banner, "8282") - assert.Nil(t, err) |