neoneo-go/pkg
Roman Khimov 473a1fc24e rpc/server: fix sporadic test failures
It can still be "reading" after test end:

    subscription_test.go:24:
        	Error Trace:	subscription_test.go:24
        	            				asm_amd64.s:1374
        	Error:      	Received unexpected error:
        	            	set tcp 127.0.0.1:49874: use of closed network connection
        	Test:       	TestFilteredNotaryRequestSubscriptions

==================
WARNING: DATA RACE
Write at 0x00c000e28989 by goroutine 185:
  testing.tRunner()
      /opt/hostedtoolcache/go/1.15.13/x64/src/testing/testing.go:1126 +0x21a

Previous write at 0x00c000e28989 by goroutine 192:
  testing.(*common).FailNow()
      /opt/hostedtoolcache/go/1.15.13/x64/src/testing/testing.go:731 +0x4f
  testing.(*T).FailNow()
      <autogenerated>:1 +0x44
  github.com/stretchr/testify/require.NoError()
      /home/runner/go/pkg/mod/github.com/stretchr/testify@v1.6.1/require/require.go:1038 +0x104
  github.com/nspcc-dev/neo-go/pkg/rpc/server.wsReader()
      /home/runner/work/neo-go/neo-go/pkg/rpc/server/subscription_test.go:24 +0x187

Goroutine 185 (running) created at:
  testing.(*T).Run()
      /opt/hostedtoolcache/go/1.15.13/x64/src/testing/testing.go:1168 +0x5bb
  testing.runTests.func1()
      /opt/hostedtoolcache/go/1.15.13/x64/src/testing/testing.go:1439 +0xa6
  testing.tRunner()
      /opt/hostedtoolcache/go/1.15.13/x64/src/testing/testing.go:1123 +0x202
  testing.runTests()
      /opt/hostedtoolcache/go/1.15.13/x64/src/testing/testing.go:1437 +0x612
  testing.(*M).Run()
      /opt/hostedtoolcache/go/1.15.13/x64/src/testing/testing.go:1345 +0x3b3
  main.main()
      _testmain.go:89 +0x236

Goroutine 192 (finished) created at:
  github.com/nspcc-dev/neo-go/pkg/rpc/server.initCleanServerAndWSClient()
      /home/runner/work/neo-go/neo-go/pkg/rpc/server/subscription_test.go:65 +0x294
  github.com/nspcc-dev/neo-go/pkg/rpc/server.TestFilteredNotaryRequestSubscriptions()
      /home/runner/work/neo-go/neo-go/pkg/rpc/server/subscription_test.go:348 +0x68d
  testing.tRunner()
      /opt/hostedtoolcache/go/1.15.13/x64/src/testing/testing.go:1123 +0x202
==================
    testing.go:1038: race detected during execution of test
2021-07-08 10:40:54 +03:00
..
compiler compiler/test: compile whole directory in examples 2021-06-28 11:50:40 +03:00
config config: make MaxValidUntilBlockIncrement configurable 2021-05-17 13:43:03 +03:00
consensus crypto: allow to provide non-default scrypt parameters 2021-06-11 15:22:28 +03:00
core state/result: save/return real JSONization errors 2021-07-07 00:42:36 +03:00
crypto keys: simplify code a bit 2021-06-17 21:55:00 +03:00
encoding *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
interop native/neo: add getAccountState method, close #1975 2021-05-27 10:59:38 +03:00
io *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
network network: don't log transport errors on exit 2021-07-08 10:40:54 +03:00
rpc rpc/server: fix sporadic test failures 2021-07-08 10:40:54 +03:00
services *: regenerate test wallets with resources-friendly scrypt parameters 2021-06-11 15:22:32 +03:00
smartcontract callflag: add C#-compliant JSONization, fix #2040 2021-07-06 11:17:12 +03:00
util *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
vm state: move nil check down to stackitem JSON processing 2021-07-07 00:38:19 +03:00
wallet *: regenerate test wallets with resources-friendly scrypt parameters 2021-06-11 15:22:32 +03:00