]> Sergey Matveev's repositories - btrtrc.git/blobdiff - peer_protocol/ut-holepunch/err-code_test.go
Fix panic logging unknown holepunch error code
[btrtrc.git] / peer_protocol / ut-holepunch / err-code_test.go
diff --git a/peer_protocol/ut-holepunch/err-code_test.go b/peer_protocol/ut-holepunch/err-code_test.go
new file mode 100644 (file)
index 0000000..4553810
--- /dev/null
@@ -0,0 +1,10 @@
+package utHolepunch
+
+import (
+       "math/rand"
+       "testing"
+)
+
+func TestUnknownErrCodeError(t *testing.T) {
+       ErrCode(rand.Uint32()).Error()
+}