Skip to content

Commit

Permalink
chore(test): fix android tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Sep 29, 2023
1 parent 252ecb6 commit 7b28959
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions test/src/dgram.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import crypto from 'socket:crypto'
import Buffer from 'socket:buffer'
import dgram from 'socket:dgram'
import util from 'socket:util'
import os from 'socket:os'

// node compat
/*
Expand Down Expand Up @@ -118,6 +119,7 @@ test('dgram createSocket, address, bind, close', async (t) => {

test('udp bind, send, remoteAddress', async (t) => {
if (process.env.SSC_ANDROID_CI) return
if (os.platform() === 'win32' && process.env.GITHUB_ACTIONS_CI) return

const server = dgram.createSocket({
type: 'udp4',
Expand Down
10 changes: 5 additions & 5 deletions test/src/fs/promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ if (process.platform !== 'ios') {
t.equal(access, true, '(X_OK) fixtures/ directory is "executable" - can list items')
})

test('fs.promises.chmod', async (t) => {
const chmod = await fs.chmod(FIXTURES + 'file.txt', 0o777)
t.equal(chmod, undefined, 'file.txt is chmod 777')
})

if (os.platform() !== 'android') {
test('fs.promises.chmod', async (t) => {
const chmod = await fs.chmod(FIXTURES + 'file.txt', 0o777)
t.equal(chmod, undefined, 'file.txt is chmod 777')
})

test('fs.promises.mkdir', async (t) => {
const dirname = FIXTURES + Math.random().toString(16).slice(2)
await fs.mkdir(dirname, {})
Expand Down

0 comments on commit 7b28959

Please sign in to comment.