go-ssb
go-ssb copied to clipboard
Fix flaky tests
How to help
- Pick a test from the list below :spiral_notepad:
- Run the test over and over again until you see a failure (see below for HOWTO) :running_woman:
- If it fails, open up an issue to document your digging (e.g. https://github.com/ssbc/go-ssb/issues/257) :nerd_face:
- Try to submit a fix :smile:
- If it doesn't fail after
$a_lot_of_runs
, let's re-enable it (e.g. https://github.com/ssbc/go-ssb/pull/256) :sun_with_face:
Good Luck :firefighter: :construction_worker_woman:
Testing the tests
cd graph
LIBRARIAN_WRITEALL=0 go test -v ./ -run TestBadger | tee -a test.log # wait $a_while
cat test.log | grep FAIL # check for failures
cat test.log | grep PASS$ | wc -l # count passes
TODO
- [x] TestStatusCalls https://github.com/ssbc/go-ssb/pull/256
- [x] TestPublishUnicode https://github.com/ssbc/go-ssb/pull/259
- [x] TestPersistence https://github.com/ssbc/go-ssb/pull/263
- [x] TestMigrate https://github.com/ssbc/go-ssb/pull/264
- [x] TestDontStartTwiceOnTheSameRepo https://github.com/ssbc/go-ssb/pull/265
- [x] TestIndexFixtures https://github.com/ssbc/go-ssb/issues/279 https://github.com/ssbc/go-ssb/pull/280 https://github.com/ssbc/go-ssb/issues/281 https://github.com/ssbc/go-ssb/pull/283
- [x] TestSpec https://github.com/ssbc/go-ssb/issues/275 https://github.com/ssbc/go-ssb/pull/276
- [x] TestInvalidFuzzed https://github.com/ssbc/go-ssb/issues/284 https://github.com/ssbc/go-ssb/pull/285 https://github.com/ssbc/go-ssb/pull/286
- [x] TestLegacyInviteJSAccept https://github.com/ssbc/go-ssb/pull/295
- [x] TestNames https://github.com/ssbc/go-ssb/issues/250 https://github.com/ssbc/go-ssb/pull/255 https://github.com/ssbc/go-ssb/pull/308
- [x] TestAboutNames https://github.com/ssbc/go-ssb/issues/282 https://github.com/ssbc/go-ssb/pull/309
- [x] TestSubsetQueryPlanExecution https://github.com/ssbc/go-ssb/issues/277 https://github.com/ssbc/go-ssb/pull/310
- [x] TestSignMessages https://github.com/ssbc/go-ssb/issues/289 https://github.com/ssbc/go-ssb/pull/308
- [x] TestBadger https://github.com/ssbc/go-ssb/issues/266 https://github.com/ssbc/go-ssb/pull/313
- [x] TestStartup https://github.com/ssbc/go-ssb/issues/261 https://github.com/ssbc/go-ssb/pull/315
- [x] TestMetafeedIndexes https://github.com/ssbc/go-ssb/issues/299 https://github.com/ssbc/go-ssb/pull/316
- [x] TestPeople https://github.com/ssbc/go-ssb/issues/274 https://github.com/ssbc/go-ssb/pull/322
- [ ] TestLegacyInviteJSCreate https://github.com/ssbc/go-ssb/issues/249
- [ ] TestReplicate https://github.com/ssbc/go-ssb/issues/260
- [ ] TestNullFeed https://github.com/ssbc/go-ssb/issues/268 https://github.com/ssbc/go-ssb/pull/269
- [ ] TestBlocking https://github.com/ssbc/go-ssb/issues/273
- [ ] TestFSCK https://github.com/ssbc/go-ssb/issues/296
- [ ] TestNullFetched https://github.com/ssbc/go-ssb/issues/298
- [ ] TestPrivateGroupsManualDecrypt https://github.com/ssbc/go-ssb/issues/300
- [ ] TestPrivMsgsFromGo https://github.com/ssbc/go-ssb/issues/328