Skip to content

Commit

Permalink
fix(hosting): error while syncing again (#83)
Browse files Browse the repository at this point in the history
* fix(hosting): error while syncing again
* fix(e2e): add proper es6 env for config test case
  • Loading branch information
mkucharz authored Jan 19, 2018
1 parent 0764e1b commit f1d42f5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/utils/hosting/hosting.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,10 @@ class Hosting {
async listRemoteFiles () {
debug('listRemoteFiles()')
const files = await session.connection.hosting.listFiles(this.name)
return files.map(async file => {
return Promise.all(files.map(async file => {
const hostingFile = new HostingFile(file)
return hostingFile.loadRemote(file)
})
}))
}

// Get info about hostings first, then get the files list for given one
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: hello-config
description: Socket for cheching config functionality
version: 0.0.1
runtime: nodejs_v8

config:
TEST1:
Expand Down
9 changes: 7 additions & 2 deletions packages/cli/tests/e2e/hosting.test-e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,13 @@ describe('[E2E] CLI Hosting', function () {
it('can sync local hosting', function (done) {
testNixt()
.run(`${cliLocation} hosting sync ${hostingName}`)
.on(/Choose socket in which you want to set up hosting/)
.respond('\n')
.stdout(/files synchronized/)
.end(done)
})

it('can sync local hosting again', function (done) {
testNixt()
.run(`${cliLocation} hosting sync ${hostingName}`)
.stdout(/files synchronized/)
.end(done)
})
Expand Down

0 comments on commit f1d42f5

Please sign in to comment.