Skip to content

Commit

Permalink
Auto merge of #6912 - clekstro:remove-recursive-symlink, r=rwjblue
Browse files Browse the repository at this point in the history
Stop creating recursive symlink (addon requiring itself)

When running the `addon/smoke-test-slow` test in isolation, I was getting an `EEXIST` error that the `node_modules/developing-addon` symlink that we were creating manually in this test is already present. Deleting the extra test setup resolved the issue.

This just impacts the test suite and was a precursor to #6911.

Many thanks to @Turbo87 for helping to track this down ❤️
  • Loading branch information
homu committed Mar 28, 2017
2 parents e5f3a33 + 99b4e6a commit 84401eb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/acceptance/addon-smoke-test-slow.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const fs = require('fs-extra');
const spawn = require('child_process').spawn;
const chalk = require('chalk');

const symlinkOrCopySync = require('symlink-or-copy').sync;
const runCommand = require('../helpers/run-command');
const ember = require('../helpers/ember');
const copyFixtureFiles = require('../helpers/copy-fixture-files');
Expand Down Expand Up @@ -71,13 +70,8 @@ describe('Acceptance: addon-smoke-test', function() {
// add HTMLBars for templates (generators do this automatically when components/templates are added)
packageJson.dependencies['ember-cli-htmlbars'] = 'latest';

// build with addon deps being developed
packageJson.dependencies['developing-addon'] = 'latest';

fs.writeJsonSync(packageJsonPath, packageJson);

symlinkOrCopySync(path.resolve('../../tests/fixtures/addon/developing-addon'), path.join(addonRoot, 'node_modules', 'developing-addon'));

let result = yield runCommand('node_modules/ember-cli/bin/ember', 'build');

expect(result.code).to.eql(0);
Expand Down

0 comments on commit 84401eb

Please sign in to comment.