Description: Drop ws tests that are irrelevent for us
Author: Stephen Gelman <ssgelm@debian.org>
Forwarded: not-needed
Last-Update: 2024-08-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/conn_test.go
+++ b/conn_test.go
@@ -344,6 +344,7 @@
 }
 
 func TestWasm(t *testing.T) {
+	t.Skip()
 	t.Parallel()
 	if os.Getenv("CI") == "" {
 		t.SkipNow()
--- a/internal/thirdparty/frame_test.go
+++ b/internal/thirdparty/frame_test.go
@@ -7,9 +7,7 @@
 	"testing"
 	_ "unsafe"
 
-	"github.com/gobwas/ws"
 	_ "github.com/gorilla/websocket"
-	_ "github.com/lesismal/nbio/nbhttp/websocket"
 
 	_ "github.com/coder/websocket"
 )
@@ -28,9 +26,6 @@
 //go:linkname maskAsm github.com/coder/websocket.maskAsm
 func maskAsm(b *byte, len int, key32 uint32) uint32
 
-//go:linkname nbioMaskBytes github.com/lesismal/nbio/nbhttp/websocket.maskXOR
-func nbioMaskBytes(b, key []byte) int
-
 //go:linkname gorillaMaskBytes github.com/gorilla/websocket.maskBytes
 func gorillaMaskBytes(key [4]byte, pos int, b []byte) int
 
@@ -97,23 +92,6 @@
 				}
 			},
 		},
-		{
-			name: "gobwas",
-			fn: func(b *testing.B, key [4]byte, p []byte) {
-				for i := 0; i < b.N; i++ {
-					ws.Cipher(p, key, 0)
-				}
-			},
-		},
-		{
-			name: "nbio",
-			fn: func(b *testing.B, key [4]byte, p []byte) {
-				keyb := key[:]
-				for i := 0; i < b.N; i++ {
-					nbioMaskBytes(p, keyb)
-				}
-			},
-		},
 	}
 
 	key := [4]byte{1, 2, 3, 4}
