Skip to content

Commit 82b3445

Browse files
committed
Test on Windows.
1 parent d614747 commit 82b3445

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
os:
2020
- ubuntu
2121
- macos
22+
- windows
2223

2324
ruby:
2425
- "3.2"
@@ -47,4 +48,4 @@ jobs:
4748

4849
- name: Run tests
4950
timeout-minutes: 10
50-
run: bundle exec bake test
51+
run: bundle exec sus --verbose

lib/io/stream/buffered.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def sysclose
106106
end
107107
end
108108

109-
if RUBY_VERSION >= "3.3"
109+
if RUBY_VERSION >= "3.3" # and RUBY_PLATFORM !~ /win32|mswin|mingw/
110110
def syswrite(buffer)
111111
return @io.write(buffer)
112112
end

test/io/stream/buffered.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ def before
321321
end
322322

323323
it "times out when writing" do
324+
skip if RUBY_PLATFORM =~ /win32|mswin|mingw/
325+
324326
server.io.timeout = 0.001
325327

326328
expect do

0 commit comments

Comments
 (0)