Skip to content

Commit

Permalink
move lock file to ~/Library/Detox
Browse files Browse the repository at this point in the history
  • Loading branch information
Doron Pearl committed Mar 7, 2018
1 parent 3bc6518 commit f839c3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion detox/src/devices/DeviceRegistry.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const os = require('os');
const fs = require('fs');
const plockfile = require('proper-lockfile');
const _ = require('lodash');
const retry = require('../utils/retry');
const LOCK_FILE = './device.registry.state.lock';
const LOCK_FILE = `${os.homedir()}/Library/Detox/device.registry.state.lock`;

class DeviceRegistry {

Expand Down

2 comments on commit f839c3d

@rotemmiz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use https://github.com/wix/detox/blob/master/detox/src/utils/environment.js
You'll need to add ${os.homedir()}/Library/Detox/ to a const or function

@doronpr
Copy link
Contributor

@doronpr doronpr commented on f839c3d Mar 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Please sign in to comment.