Skip to content

Commit 262ce37

Browse files
committed
test(prompter): skip vt10x tests on Windows
1 parent e299b56 commit 262ce37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/prompter/prompter_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55
"io"
66
"os"
7+
"runtime"
78
"strings"
89
"testing"
910
"time"
@@ -67,6 +68,12 @@ func TestNewReturnsAccessiblePrompter(t *testing.T) {
6768
}
6869

6970
func TestSpeechSynthesizerFriendlyPrompter(t *testing.T) {
71+
// Do not run these on windows because they'll fail with:
72+
// hinshun\vt10x@v0.0.0-20220119200601-820417d04eec\vt_other.go:26:8: t.cur.attr undefined (type Cursor has no field or method attr, but does have field Attr)
73+
if runtime.GOOS == "windows" {
74+
t.Skip("Skipping on Windows")
75+
}
76+
7077
// Create a PTY and hook up a virtual terminal emulator
7178
ptm, pts, err := pty.Open()
7279
require.NoError(t, err)

0 commit comments

Comments
 (0)