git ssb

4+

Dominic / scuttlebot



Commit 62eb750647d7445ec220135de7f1f5fb1bbadd26

ssb-friends module is depends on replicate being loaded first

Dominic Tarr committed on 6/1/2017, 3:59:20 AM
Parent: 99c7f955e26533d822a8fcbc4c19c433a3961737

Files changed

test/block.jschanged
test/block2.jschanged
test/block3.jschanged
test/caps.jschanged
test/friends.jschanged
test/gossip.jschanged
test/invite.jschanged
test/random.jschanged
test/realtime.jschanged
test/server.jschanged
test/block.jsView
@@ -4,10 +4,10 @@
44 var ssbKeys = require('ssb-keys')
55 var u = require('./util')
66
77 var createSbot = require('../')
8+ .use(require('../plugins/replicate'))
89 .use(require('ssb-friends'))
9- .use(require('../plugins/replicate'))
1010
1111 var toAddress = require('../lib/util').toAddress
1212
1313 function once (fn) {
@@ -256,4 +256,7 @@
256256
257257
258258
259259
260+
261+
262+
test/block2.jsView
@@ -4,10 +4,10 @@
44 var ssbKeys = require('ssb-keys')
55 var u = require('./util')
66
77 var createSbot = require('../')
8+ .use(require('../plugins/replicate'))
89 .use(require('ssb-friends'))
9- .use(require('../plugins/replicate'))
1010
1111 var alice = createSbot({
1212 temp: 'test-block-alice', //timeout: 1400,
1313 keys: ssbKeys.generate()
@@ -57,4 +57,5 @@
5757 })
5858 })
5959
6060
61+
test/block3.jsView
@@ -17,10 +17,10 @@
1717 // 2. alice never tries to connect to bob. (removed from peers)
1818 // 3. carol will not give bob any, she will not give him any data from alice.
1919
2020 var createSbot = require('../')
21+ .use(require('../plugins/replicate'))
2122 .use(require('ssb-friends'))
22- .use(require('../plugins/replicate'))
2323
2424 var alice = createSbot({
2525 temp: 'test-block-alice', timeout: 1000,
2626 keys: ssbKeys.generate()
@@ -81,4 +81,5 @@
8181 })
8282
8383
8484
85+
test/caps.jsView
@@ -11,10 +11,10 @@
1111 // give them all pub servers (on localhost)
1212 // and get them to follow each other...
1313
1414 var createSbot = require('../')
15+ .use(require('../plugins/replicate'))
1516 .use(require('ssb-friends'))
16- .use(require('../plugins/replicate'))
1717 .use(require('../plugins/gossip'))
1818 .use(require('../plugins/logging'))
1919
2020 var createHash = require('crypto').createHash
@@ -110,4 +110,5 @@
110110 dbC.close()
111111 t.end()
112112 })
113113
114+
test/friends.jsView
@@ -10,8 +10,9 @@
1010 // add some of friend edges (follow, flag)
1111 // make sure the friends plugin analyzes correctly
1212
1313 var createSbot = require('../')
14+ .use(require('../plugins/replicate'))
1415 .use(require('ssb-friends'))
1516
1617
1718 function sort (ary) {
test/gossip.jsView
@@ -8,9 +8,9 @@
88 var u = require('./util')
99 var isArray = Array.isArray
1010
1111 var createSbot = require('../')
12- .use(require('ssb-friends'))
12+// .use(require('ssb-friends'))
1313 .use(require('../plugins/gossip'))
1414 // .use(require('../plugins/logging'))
1515
1616
test/invite.jsView
@@ -9,8 +9,10 @@
99
1010 var createSbot = require('../')
1111 .use(require('../plugins/master'))
1212 .use(require('../plugins/invite'))
13+ .use(require('../plugins/replicate'))
14+
1315 .use(require('ssb-friends'))
1416 .use(require('ssb-ws'))
1517
1618 function all(stream, cb) {
@@ -292,4 +294,5 @@
292294 })
293295
294296
295297
298+
test/random.jsView
@@ -36,10 +36,10 @@
3636 }
3737 }
3838
3939 var createSbot = require('../')
40+ .use(require('../plugins/replicate'))
4041 .use(require('ssb-friends'))
41- .use(require('../plugins/replicate'))
4242 .use(require('../plugins/gossip'))
4343
4444 function generateAnimals (sbot, feed, f, n, cb) {
4545 var a = [feed]
@@ -292,4 +292,5 @@
292292 animalNetwork.close(true)
293293 t.end()
294294 })
295295
296+
test/realtime.jsView
@@ -6,10 +6,10 @@
66
77 var ssbKeys = require('ssb-keys')
88
99 var createSbot = require('../')
10+ .use(require('../plugins/replicate'))
1011 .use(require('ssb-friends'))
11- .use(require('../plugins/replicate'))
1212
1313 tape('replicate between 3 peers', function (t) {
1414
1515 var bob = createSbot({
@@ -68,4 +68,5 @@
6868
6969 })
7070 })
7171
72+
test/server.jsView
@@ -11,10 +11,10 @@
1111 // give them all pub servers (on localhost)
1212 // and get them to follow each other...
1313
1414 var createSbot = require('../')
15+ .use(require('../plugins/replicate'))
1516 .use(require('ssb-friends'))
16- .use(require('../plugins/replicate'))
1717 .use(require('../plugins/gossip'))
1818 .use(require('../plugins/logging'))
1919
2020 tape('replicate between 3 peers', function (t) {
@@ -92,4 +92,5 @@
9292
9393
9494
9595
96+

Built with git-ssb-web