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

sync: off-by-three #14

Closed
cryptix opened this issue May 9, 2019 · 0 comments
Closed

sync: off-by-three #14

cryptix opened this issue May 9, 2019 · 0 comments

Comments

@cryptix
Copy link
Member

cryptix commented May 9, 2019

whoops.. that's weird. There need to be more than 2 new messages otherwise the source just plays empty.

--- FAIL: TestFeedsOneByOne (1.16s)
    feeds_test.go:84: runniung connect 0
    logger.go:31: test=bob plugin=gossip msg="fetchHops done" hops=2 stored=1
    logger.go:31: test=ali plugin=gossip msg="fetchHops done" hops=2 stored=1
    feeds_test.go:97:
        	Error Trace:	feeds_test.go:97
        	Error:      	Not equal:
        	            	expected: 0
        	            	actual  : -1
        	Test:       	TestFeedsOneByOne
        	Messages:   	check run 0
    feeds_test.go:84: runniung connect 1
    logger.go:31: test=ali plugin=gossip msg="fetchHops done" hops=2 stored=1
    logger.go:31: test=bob plugin=gossip msg="fetchHops done" hops=2 stored=1
    feeds_test.go:97:
        	Error Trace:	feeds_test.go:97
        	Error:      	Not equal:
        	            	expected: 1
        	            	actual  : -1
        	Test:       	TestFeedsOneByOne
        	Messages:   	check run 1
    feeds_test.go:84: runniung connect 2
    logger.go:31: test=ali plugin=gossip msg="fetchHops done" hops=2 stored=1
    logger.go:31: test=ali plugin=gossip/hist event=gossiptx n=3
    logger.go:31: test=bob plugin=gossip fr="@34wNGCIqZEi61rtkJzsrWGoczIvW1pbj2DKHZmLnYQs=.ed25519" latest=0 event=gossiprx new=3 took=3.947179ms
    logger.go:31: test=bob plugin=gossip msg="fetchHops done" hops=2 stored=1
    feeds_test.go:84: runniung connect 3
    logger.go:31: test=ali plugin=gossip msg="fetchHops done" hops=2 stored=1
    logger.go:31: test=bob plugin=gossip msg="fetchHops done" hops=2 stored=2
    feeds_test.go:97:
        	Error Trace:	feeds_test.go:97
        	Error:      	Not equal:
        	            	expected: 3
        	            	actual  : 2
        	Test:       	TestFeedsOneByOne
        	Messages:   	check run 3
    feeds_test.go:84: runniung connect 4
    logger.go:31: test=ali plugin=gossip msg="fetchHops done" hops=2 stored=1
    logger.go:31: test=bob plugin=gossip msg="fetchHops done" hops=2 stored=2
    feeds_test.go:97:
        	Error Trace:	feeds_test.go:97
        	Error:      	Not equal:
        	            	expected: 4
        	            	actual  : 2
        	Test:       	TestFeedsOneByOne
        	Messages:   	check run 4
    feeds_test.go:84: runniung connect 5
    logger.go:31: test=ali plugin=gossip msg="fetchHops done" hops=2 stored=1
    logger.go:31: test=ali plugin=gossip/hist event=gossiptx n=3
    logger.go:31: test=bob plugin=gossip fr="@34wNGCIqZEi61rtkJzsrWGoczIvW1pbj2DKHZmLnYQs=.ed25519" latest=3 event=gossiprx new=3 took=3.767502ms
    logger.go:31: test=bob plugin=gossip msg="fetchHops done" hops=2 stored=2
    feeds_test.go:84: runniung connect 6
    logger.go:31: test=ali plugin=gossip msg="fetchHops done" hops=2 stored=1
    logger.go:31: test=bob plugin=gossip msg="fetchHops done" hops=2 stored=2
    feeds_test.go:97:
        	Error Trace:	feeds_test.go:97
        	Error:      	Not equal:
        	            	expected: 6
        	            	actual  : 5
        	Test:       	TestFeedsOneByOne
        	Messages:   	check run 6
    feeds_test.go:84: runniung connect 7
    logger.go:31: test=ali plugin=gossip msg="fetchHops done" hops=2 stored=1
    logger.go:31: test=bob plugin=gossip msg="fetchHops done" hops=2 stored=2
    feeds_test.go:97:
        	Error Trace:	feeds_test.go:97
        	Error:      	Not equal:
        	            	expected: 7
        	            	actual  : 5
        	Test:       	TestFeedsOneByOne
        	Messages:   	check run 7
    feeds_test.go:84: runniung connect 8
    logger.go:31: test=ali plugin=gossip msg="fetchHops done" hops=2 stored=1
    logger.go:31: test=ali plugin=gossip/hist event=gossiptx n=3
    logger.go:31: test=bob plugin=gossip fr="@34wNGCIqZEi61rtkJzsrWGoczIvW1pbj2DKHZmLnYQs=.ed25519" latest=6 event=gossiprx new=3 took=3.202215ms
cryptix added a commit that referenced this issue May 9, 2019
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

No branches or pull requests

1 participant