aboutsummaryrefslogtreecommitdiff
path: root/protocol/sideband64k/decoder_unexpected_eof_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'protocol/sideband64k/decoder_unexpected_eof_test.go')
-rw-r--r--protocol/sideband64k/decoder_unexpected_eof_test.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/protocol/sideband64k/decoder_unexpected_eof_test.go b/protocol/sideband64k/decoder_unexpected_eof_test.go
deleted file mode 100644
index 74d5a6fb..00000000
--- a/protocol/sideband64k/decoder_unexpected_eof_test.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package sideband64k_test
-
-import (
- "errors"
- "io"
- "strings"
- "testing"
-
- "codeberg.org/lindenii/furgit/protocol/sideband64k"
-)
-
-func TestDecoderUnexpectedEOF(t *testing.T) {
- t.Parallel()
-
- dec := sideband64k.NewDecoder(strings.NewReader("0006\x01"), sideband64k.ReadOptions{})
-
- _, err := dec.ReadFrame()
- if !errors.Is(err, io.ErrUnexpectedEOF) {
- t.Fatalf("got err %v, want io.ErrUnexpectedEOF", err)
- }
-}