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

go test race conditions #735

Open
ydm opened this issue Aug 2, 2021 · 0 comments
Open

go test race conditions #735

ydm opened this issue Aug 2, 2021 · 0 comments

Comments

@ydm
Copy link
Contributor

ydm commented Aug 2, 2021

==================
WARNING: DATA RACE
Write at 0x000003445913 by goroutine 51:
github.com/thrasher-corp/gocryptotrader/config.(*Config).CheckLoggerConfig()
/home/d/go/src/github.com/numus-digital/gocryptotrader/config/config.go:1277 +0x6f3
github.com/thrasher-corp/gocryptotrader/config.(*Config).CheckConfig()
/home/d/go/src/github.com/numus-digital/gocryptotrader/config/config.go:1744 +0x55
github.com/thrasher-corp/gocryptotrader/config.(*Config).LoadConfig()
/home/d/go/src/github.com/numus-digital/gocryptotrader/config/config.go:1803 +0x199
github.com/thrasher-corp/gocryptotrader/engine.TestConfigAllJsonResponse()
/home/d/go/src/github.com/numus-digital/gocryptotrader/engine/apiserver_test.go:250 +0xce
testing.tRunner()
/usr/lib/go/src/testing/testing.go:1193 +0x202

Previous read at 0x000003445913 by goroutine 115:
github.com/thrasher-corp/gocryptotrader/log.SetupGlobalLogger()
/home/d/go/src/github.com/numus-digital/gocryptotrader/log/logger_setup.go:91 +0x74
github.com/thrasher-corp/gocryptotrader/engine.NewFromSettings()
/home/d/go/src/github.com/numus-digital/gocryptotrader/engine/engine.go:89 +0x77d
github.com/thrasher-corp/gocryptotrader/engine.TestStartStopDoesNotCausePanic()
/home/d/go/src/github.com/numus-digital/gocryptotrader/engine/engine_test.go:90 +0x194
testing.tRunner()
/usr/lib/go/src/testing/testing.go:1193 +0x202

Goroutine 51 (running) created at:
testing.(*T).Run()
/usr/lib/go/src/testing/testing.go:1238 +0x5d7
testing.runTests.func1()
/usr/lib/go/src/testing/testing.go:1511 +0xa6
testing.tRunner()
/usr/lib/go/src/testing/testing.go:1193 +0x202
testing.runTests()
/usr/lib/go/src/testing/testing.go:1509 +0x612
testing.(*M).Run()
/usr/lib/go/src/testing/testing.go:1417 +0x3b3
main.main()
_testmain.go:365 +0x236

Goroutine 115 (running) created at:
testing.(*T).Run()
/usr/lib/go/src/testing/testing.go:1238 +0x5d7
testing.runTests.func1()
/usr/lib/go/src/testing/testing.go:1511 +0xa6
testing.tRunner()
/usr/lib/go/src/testing/testing.go:1193 +0x202
testing.runTests()
/usr/lib/go/src/testing/testing.go:1509 +0x612
testing.(*M).Run()
/usr/lib/go/src/testing/testing.go:1417 +0x3b3
main.main()
_testmain.go:365 +0x236

--- FAIL: TestGetExchangeHighestPriceByCurrencyPair (0.30s)
testing.go:1092: race detected during execution of test

--- FAIL: TestGetExchangeoOTPByName (0.36s)
testing.go:1092: race detected during execution of test

--- FAIL: TestGetCollatedExchangeAccountInfoByCoin (0.31s)
testing.go:1092: race detected during execution of test

--- FAIL: TestGetCryptocurrenciesByExchange (0.29s)
testing.go:1092: race detected during execution of test

--- FAIL: TestDryRunParamInteraction (0.76s)
testing.go:1092: race detected during execution of test

--- FAIL: TestGetExchangeNames (0.32s)
testing.go:1092: race detected during execution of test

--- FAIL: TestGetAuthAPISupportedExchanges (0.35s)
testing.go:1092: race detected during execution of test

--- FAIL: TestConfigAllJsonResponse (0.99s)
testing.go:1092: race detected during execution of test

--- FAIL: TestGetStatus (0.80s)
testing.go:1092: race detected during execution of test

--- FAIL: TestStop (0.67s)
testing.go:1092: race detected during execution of test

--- FAIL: TestStartStopDoesNotCausePanic (1.73s)
testing.go:1092: race detected during execution of test

--- FAIL: TestConnectionMonitorStop (1.77s)
testing.go:1092: race detected during execution of test

--- FAIL: TestConnectionMonitorIsRunning (1.89s)
testing.go:1092: race detected during execution of test

--- FAIL: TestConnectionMonitorStart (2.06s)
testing.go:1092: race detected during execution of test

--- FAIL: TestConnectionMonitorIsOnline (2.01s)
testing.go:1092: race detected during execution of test

--- FAIL: TestIsOnline (2.21s)
testing.go:1092: race detected during execution of test
FAIL
FAIL github.com/thrasher-corp/gocryptotrader/engine 5.840s
FAIL

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