aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/table_util_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-05-13 18:31:45 +0800
committerGitHub <noreply@github.com>2019-05-13 18:31:45 +0800
commita0b81097ad8eb65745b00ca2ec2c55fa4dde2ac7 (patch)
tree56f5ddeed2c32b2723333dee340883dc96c8bafa /p2p/discover/table_util_test.go
parentec2131c8d3382db3762909a8e7d225be61bae230 (diff)
parent95263914fcc6631aedc7294624ae39c2adf3cb5f (diff)
downloadgo-tangerine-a0b81097ad8eb65745b00ca2ec2c55fa4dde2ac7.tar
go-tangerine-a0b81097ad8eb65745b00ca2ec2c55fa4dde2ac7.tar.gz
go-tangerine-a0b81097ad8eb65745b00ca2ec2c55fa4dde2ac7.tar.bz2
go-tangerine-a0b81097ad8eb65745b00ca2ec2c55fa4dde2ac7.tar.lz
go-tangerine-a0b81097ad8eb65745b00ca2ec2c55fa4dde2ac7.tar.xz
go-tangerine-a0b81097ad8eb65745b00ca2ec2c55fa4dde2ac7.tar.zst
go-tangerine-a0b81097ad8eb65745b00ca2ec2c55fa4dde2ac7.zip
Merge pull request #19562 from holiman/fix_tabcrash
p2p/discover: fix nil-dereference due to race
Diffstat (limited to 'p2p/discover/table_util_test.go')
-rw-r--r--p2p/discover/table_util_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/p2p/discover/table_util_test.go b/p2p/discover/table_util_test.go
index 811466cf7..71cb1895b 100644
--- a/p2p/discover/table_util_test.go
+++ b/p2p/discover/table_util_test.go
@@ -42,6 +42,7 @@ func init() {
func newTestTable(t transport) (*Table, *enode.DB) {
db, _ := enode.OpenDB("")
tab, _ := newTable(t, db, nil, log.Root())
+ go tab.loop()
return tab, db
}