diff --git a/internal/sysfs/poll_test.go b/internal/sysfs/poll_test.go index 6f6b35595ef..138529a219f 100644 --- a/internal/sysfs/poll_test.go +++ b/internal/sysfs/poll_test.go @@ -8,7 +8,6 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" "github.com/tetratelabs/wazero/internal/testing/require" ) @@ -16,10 +15,6 @@ func Test_poll(t *testing.T) { t.Run("should return immediately with no fds and duration 0", func(t *testing.T) { for { n, err := _poll([]pollFd{}, 0) - if err == sys.EINTR { - t.Logf("Select interrupted") - continue - } require.EqualErrno(t, 0, err) require.Equal(t, 0, n) return @@ -37,10 +32,6 @@ func Test_poll(t *testing.T) { start := time.Now() n, err := _poll([]pollFd{}, dur) took = time.Since(start) - if err == sys.EINTR { - t.Logf("Select interrupted after %v", took) - continue - } require.EqualErrno(t, 0, err) require.Equal(t, 0, n) @@ -72,10 +63,6 @@ func Test_poll(t *testing.T) { for { fds := []pollFd{newPollFd(rr.Fd(), _POLLIN, 0)} - if err == sys.EINTR { - t.Log("Select interrupted") - continue - } n, err := _poll(fds, 0) require.EqualErrno(t, 0, err) require.Equal(t, 1, n)