Commit graph

3445 commits

Author SHA1 Message Date
Daniel Lugo
7bde98e6a3 Foundations for switching to mocha for testing 2021-11-11 13:33:27 -04:00
Daniel Lugo
9d342a460c Test for reliably auth info across reforges 2021-11-11 13:33:27 -04:00
Daniel Lugo
596c7c8281 Correct property access 2021-11-11 13:33:27 -04:00
Daniel Lugo
0c5e13b303 Expose process counter in a better way 2021-11-11 13:33:27 -04:00
Daniel Lugo
d0d6fea204 Expose forging mechanics 2021-11-11 13:33:27 -04:00
Daniel Lugo
09d96efee7 Only clear cached credentials if autoauth fails 2021-11-11 13:33:27 -04:00
Daniel Lugo
84ff20995b Authentication section in tests 2021-11-11 13:33:27 -04:00
Daniel Lugo
06d20f9c16 forge() should not be awaited 2021-11-11 13:33:27 -04:00
Daniel Lugo
2acb7bc379 Test for specialOn() 2021-11-11 13:33:27 -04:00
Daniel Lugo
762b704a5b Expose process counter 2021-11-11 13:33:27 -04:00
Daniel Lugo
9cf8dddf1a Better check 2021-11-11 13:33:27 -04:00
Daniel Lugo
a21f949a79 Test for specialThen() 2021-11-11 13:33:27 -04:00
Daniel Lugo
c992671356 Change test order, avoids undiagnosed race cond 2021-11-11 13:33:27 -04:00
Daniel Lugo
39f6ca8664 Correct method for test 2021-11-11 13:33:27 -04:00
Daniel Lugo
92429ecb1e Ignore empty object error acks ("{}") when put()ing 2021-11-11 13:33:27 -04:00
Daniel Lugo
1d67fb4f49 done() before release() 2021-11-11 13:33:27 -04:00
Daniel Lugo
89c206ff03 specialOnce() test foundations 2021-11-11 13:33:27 -04:00
Daniel Lugo
91e2ec08c5 Add a promisified put() to GunSmith 2021-11-11 13:33:27 -04:00
Daniel Lugo
4562b0d544 Remove debug log 2021-11-11 13:33:27 -04:00
Daniel Lugo
7536574ac0 expect.assertions() 2021-11-11 13:33:27 -04:00
Daniel Lugo
b075c77d27 Correct test script 2021-11-11 13:33:27 -04:00
Daniel Lugo
1dc71d31c2 New lifecycle management for GunSmith 2021-11-11 13:33:27 -04:00
Daniel Lugo
a41862c7b0 Wait for auth only when putting to user graph 2021-11-11 13:33:27 -04:00
Daniel Lugo
38e374c329 Wait for readyness before sending msg to subproc 2021-11-11 13:33:27 -04:00
Daniel Lugo
7c142aa4dd gun subprocess now checks its death 2021-11-11 13:33:27 -04:00
Daniel Lugo
6d2ebbcc36 Send reply to init 2021-11-11 13:33:27 -04:00
Daniel Lugo
1c16d44234 Decouple tests 2021-11-11 13:33:27 -04:00
Daniel Lugo
3f8faa4daa kill() method for trashing smith 2021-11-11 13:33:27 -04:00
Daniel Lugo
b77ed72611 Better log 2021-11-11 13:33:27 -04:00
Daniel Lugo
5d8f9054f8 Wait for readyness before sending msg 2021-11-11 13:33:27 -04:00
Daniel Lugo
ed3bab0f8e Better forge 2021-11-11 13:33:27 -04:00
Daniel Lugo
956fa6dcff Naming 2021-11-11 13:33:27 -04:00
Daniel Lugo
b829f0dc98 Flush pending puths regardless of auth 2021-11-11 13:33:27 -04:00
Daniel Lugo
6d898baa2a Use winston over console.log 2021-11-11 13:33:27 -04:00
Daniel Lugo
03790b46b5 Actually pass through wait 2021-11-11 13:33:27 -04:00
Daniel Lugo
dd79430e42 Simpler typings 2021-11-11 13:33:27 -04:00
Daniel Lugo
986e247c99 Ignore mac file 2021-11-11 13:33:27 -04:00
Daniel Lugo
b3a9765b7b Better log 2021-11-11 13:33:27 -04:00
Daniel Lugo
fc7e76036a Format 2021-11-11 13:33:27 -04:00
Daniel Lugo
ce1a4e116f Greater waits for specialOnce() 2021-11-11 13:33:27 -04:00
Daniel Lugo
d455b13dce Better log 2021-11-11 13:33:26 -04:00
Daniel Lugo
00affe6e15 Wire up Gun's logger to winston 2021-11-11 13:33:26 -04:00
Daniel Lugo
7af0ce5bfc Gunsmith restart stuff in separate methods, improve re-forge 2021-11-11 13:33:26 -04:00
Daniel Lugo
051d5aa5df Restart mechanics in GunSmith for once()s 2021-11-11 13:33:26 -04:00
Daniel Lugo
549f1ba4c4 Await for auth before putting, inside gunprocess 2021-11-11 13:33:26 -04:00
Daniel Lugo
dc78fa0371 Better logging from subprocess, now uses winston 2021-11-11 13:33:26 -04:00
Daniel Lugo
64d3c8f969 Add word to dictionary 2021-11-11 13:33:26 -04:00
Daniel Lugo
18d60a6ea8 Use util from ./misc 2021-11-11 13:33:26 -04:00
Daniel Lugo
792c3e160e More utils in GunSmith/misc 2021-11-11 13:33:26 -04:00
Daniel Lugo
10d309a8d6 Better logging for connected peers 2021-11-11 13:33:26 -04:00