Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ETCD3 support #91

Merged
merged 2 commits into from
Feb 14, 2018
Merged

ETCD3 support #91

merged 2 commits into from
Feb 14, 2018

Conversation

godu
Copy link
Contributor

@godu godu commented Feb 9, 2018

en attente de microsoft/etcd3#58

Drop du support node 6

@coveralls
Copy link

coveralls commented Feb 12, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 1ac16d3 on etcd3 into 9f6bd13 on master.

@godu godu force-pushed the etcd3 branch 2 times, most recently from 0d09bbc to 8d9bc5c Compare February 14, 2018 09:59
@godu godu changed the title Support de etcd3 ETCD3 support Feb 14, 2018
@godu godu requested a review from jfmengels February 14, 2018 10:14
@@ -7,11 +7,14 @@
"clean": "rm -rf .nyc_output coverage lib",
"prepublish": "npm run build",
"build": "babel src --out-dir lib -s --copy-files",
"test": "npm run lint && npm run nyc",
"build:watch": "npm run build -- --watch",
"test": "npm run nyc",
Copy link
Contributor

Choose a reason for hiding this comment

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

On ne fait plus de lint dans Travis et dans npm test du coup ? 🤔

package.json Outdated
"test": "npm run lint && npm run nyc",
"build:watch": "npm run build -- --watch",
"test": "npm run nyc",
"test:dev": "npm run lint && npm run ava",
"lint": "eslint src/ *.js *.json --ext .js,.json",
"lint:fix": "npm run lint -- --fix",
"ava": "NODE_ENV=test ava",
Copy link
Contributor

Choose a reason for hiding this comment

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

ava est automatiquement lané avec NODE_ENV=test depuis la 0.23. Du coup on peut lancer ava directement partout sans passer par npm run ava

src/bin/save.js Outdated

const client = createEtcd(argz);
const namespacedClient = client.namespace(namespace);
save(namespacedClient, outDir).catch(console.error); // eslint-disable-line no-console
Copy link
Contributor

Choose a reason for hiding this comment

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

Si tu veux, on pourrais désactiver cette règle pour le dossier src/bin

const fetch$ = createFetch$(client);

await t.notThrows(fetch$.toPromise());

Copy link
Contributor

Choose a reason for hiding this comment

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

Teste peut-être la valeur de retour, qu'on ait bien la valeur qui est resolved

import createStore from '..';

test('should get records and indexes', async t => {
const records$ = new Subject();
Copy link
Contributor

Choose a reason for hiding this comment

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

Rajoute t.plan

t.true(subscription instanceof Subscription);
});

// test('should', async t => {
Copy link
Contributor

Choose a reason for hiding this comment

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

À supprimer

save: false
});

t.truthy(client);
t.truthy(squirrel);
Copy link
Contributor

Choose a reason for hiding this comment

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

Tu close dans le premier test mais pas dans celui-ci. C'est un oubli ?

@godu godu merged commit 89bc35d into master Feb 14, 2018
@godu godu deleted the etcd3 branch February 14, 2018 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants