skycoin / teller

Skycoin exchange service
15 stars 30 forks source link

Flaky scanner test panics #211

Open gz-c opened 6 years ago

gz-c commented 6 years ago

https://travis-ci.org/skycoin/teller/builds/339379493

panic: send on closed channel

goroutine 24 [running]:
github.com/skycoin/teller/src/scanner.(*BaseScanner).processDeposit(0xc42025c5a0, 0x87e3a4, 0x3, 0xc4211303c0, 0x22, 0x2eebb80, 0x396c6, 0xc420d21180, 0x40, 0x0, ...)
    github.com/skycoin/teller/src/scanner/_test/_obj_test/base_scanner.go:119 +0x363
github.com/skycoin/teller/src/scanner.(*BaseScanner).Run.func3(0xc4210f12d0, 0xc4202300a0, 0xc42025c5a0)
    github.com/skycoin/teller/src/scanner/_test/_obj_test/base_scanner.go:364 +0x287
created by github.com/skycoin/teller/src/scanner.(*BaseScanner).Run
    github.com/skycoin/teller/src/scanner/_test/_obj_test/base_scanner.go:352 +0x82c
FAIL    github.com/skycoin/teller/src/scanner   6.841s
make: *** [test] Error 1
stgleb commented 6 years ago

Cannot reproduce, looks like tests are fixed on CI

gz-c commented 6 years ago

That's why its flaky, only happens rarely

therealssj commented 6 years ago

https://github.com/skycoin/teller/pull/229 fixed in this?

gz-c commented 6 years ago

not sure. if it was related to the race condition with the logger, then possibly. the other race conditions were in the tests themselves