Skip to content

chore(deps): update warehouse requirement from ^2.2.0 to ^3.0.0#3736

Merged
yoshinorin merged 1 commit intohexojs:masterfrom
yoshinorin:warehouse-3
Oct 1, 2019
Merged

chore(deps): update warehouse requirement from ^2.2.0 to ^3.0.0#3736
yoshinorin merged 1 commit intohexojs:masterfrom
yoshinorin:warehouse-3

Conversation

@yoshinorin
Copy link
Member

@coveralls
Copy link

coveralls commented Sep 28, 2019

Coverage Status

Coverage decreased (-0.002%) to 97.277% when pulling ed64a7d on YoshinoriN:warehouse-3 into 58a4882 on hexojs:master.

@yoshinorin yoshinorin added the dependencies Pull requests that update a dependency file label Sep 28, 2019
@yoshinorin
Copy link
Member Author

yoshinorin commented Sep 28, 2019

Test failure caused by this commit

@yoshinorin
Copy link
Member Author

Caused by this change.

Now I'm asking it to @segayuu. We might have to release the warehouse v3.0.1

@curbengh
Copy link
Contributor

My guess is that promise might have resolved/rejected prematurely,

it('process() - mtime changed', () => {
const box = newBox('test');
const name = 'a.txt';
const path = pathFn.join(box.base, name);
const cacheId = 'test/' + name;
const processor = sinon.spy();
box.addProcessor(processor);
return Promise.all([
fs.writeFile(path, 'a'),
box.Cache.insert({
_id: cacheId,
modified: 0
})
]).then(() => box.process()).then(() => {
const file = processor.args[0][0];
file.type.should.eql('update');
file.path.should.eql(name);
}).finally(() => fs.rmdir(box.base));
});

what about,

return Promise.all[fs.writeFile(path, 'a')].then(() => {
      box.Cache.insert({
        _id: cacheId,
        modified: 0
      })
    ])}

it('process() - hash changed', () => {
const box = newBox('test');
const name = 'a.txt';
const path = pathFn.join(box.base, name);
const cacheId = 'test/' + name;
const processor = sinon.spy();
box.addProcessor(processor);
return fs.writeFile(path, 'a').then(() => fs.stat(path)).then(stats => box.Cache.insert({
_id: cacheId,
modified: stats.mtime
})).then(() => box.process()).then(() => {
const file = processor.args[0][0];
file.type.should.eql('update');
file.path.should.eql(name);
}).finally(() => fs.rmdir(box.base));
});

return Promise.all[fs.writeFile(path, 'a')].then

@yoshinorin
Copy link
Member Author

yoshinorin commented Sep 29, 2019

@curbengh
Thanks for your support 😃
But, it seems caused by modified fields type. The modified field seems should use UnixTime but current source code mixed UnixTime and ISO8601

I create new PR (#3739)

@yoshinorin
Copy link
Member Author

yoshinorin commented Sep 30, 2019

Today, I wrote my blog using by this branch. It seems no-problem :)

Copy link
Contributor

@curbengh curbengh left a comment

Choose a reason for hiding this comment

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

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants