Created
June 19, 2017 18:56
-
-
Save excavador/85007b7963c9dbf87e0619a6f98434b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ go test -race . | |
assert.go:24: got 4398046511103 want 1497898548513033444 | |
--- FAIL: TestReadWriteSimpleData (0.09s) | |
assert.go:24: got [15 0 255 52 0 0 204 255 60 2 126 57 128 0 0 0 0] want [155 11 72 69 76 76 79 32 87 79 82 76 68 135 229 134 91] | |
--- FAIL: TestReadWriteArray (0.18s) | |
assert.go:24: got 252 want 155 Preamble failed | |
assert.go:24: got 0 want 11 Size failed | |
assert.go:24: got [] want [72 69 76 76 79 32 87 79 82 76 68] Data failed | |
assert.go:24: got want HELLO WORLD Text failed | |
assert.go:24: got 0 want 2279966299 Checksum failed | |
--- FAIL: TestReadFrameRaw (0.18s) | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c420086aa0 by goroutine 16: | |
runtime.convT2E() | |
/usr/local/Cellar/go/1.8.3/libexec/src/runtime/iface.go:191 +0x0 | |
github.com/jdevelop/go-rf5v-transceiver/manchester.TestReadWriteFrame() | |
/Users/oleg/pp/backend/src/github.com/jdevelop/go-rf5v-transceiver/manchester/manchester_test.go:247 +0x4a2 | |
testing.tRunner() | |
/usr/local/Cellar/go/1.8.3/libexec/src/testing/testing.go:657 +0x107 | |
Previous write at 0x00c420086aa0 by goroutine 17: | |
github.com/jdevelop/go-rf5v-transceiver/manchester.preambleF() | |
/Users/oleg/pp/backend/src/github.com/jdevelop/go-rf5v-transceiver/manchester/frame.go:83 +0x3f | |
github.com/jdevelop/go-rf5v-transceiver/manchester.(*dataFrame).ReadBit() | |
/Users/oleg/pp/backend/src/github.com/jdevelop/go-rf5v-transceiver/manchester/frame.go:121 +0x5b | |
github.com/jdevelop/go-rf5v-transceiver/manchester.TestReadWriteFrame.func1() | |
/Users/oleg/pp/backend/src/github.com/jdevelop/go-rf5v-transceiver/manchester/manchester_test.go:221 +0x4a | |
github.com/jdevelop/go-rf5v-transceiver/manchester.(*Manchester).ReadBit.func1() | |
/Users/oleg/pp/backend/src/github.com/jdevelop/go-rf5v-transceiver/manchester/manchester.go:61 +0x5b | |
github.com/jdevelop/go-rf5v-transceiver/manchester.(*Manchester).ReadBit.func2() | |
/Users/oleg/pp/backend/src/github.com/jdevelop/go-rf5v-transceiver/manchester/manchester.go:67 +0x89 | |
github.com/jdevelop/go-rf5v-transceiver/manchester.(*Manchester).ReadBit() | |
/Users/oleg/pp/backend/src/github.com/jdevelop/go-rf5v-transceiver/manchester/manchester.go:82 +0x166 | |
github.com/jdevelop/go-rf5v-transceiver/manchester.TestReadWriteFrame.func2() | |
/Users/oleg/pp/backend/src/github.com/jdevelop/go-rf5v-transceiver/manchester/manchester_test.go:232 +0xb6 | |
Goroutine 16 (running) created at: | |
testing.(*T).Run() | |
/usr/local/Cellar/go/1.8.3/libexec/src/testing/testing.go:697 +0x543 | |
testing.runTests.func1() | |
/usr/local/Cellar/go/1.8.3/libexec/src/testing/testing.go:882 +0xaa | |
testing.tRunner() | |
/usr/local/Cellar/go/1.8.3/libexec/src/testing/testing.go:657 +0x107 | |
testing.runTests() | |
/usr/local/Cellar/go/1.8.3/libexec/src/testing/testing.go:888 +0x4e0 | |
testing.(*M).Run() | |
/usr/local/Cellar/go/1.8.3/libexec/src/testing/testing.go:822 +0x1c3 | |
main.main() | |
github.com/jdevelop/go-rf5v-transceiver/manchester/_test/_testmain.go:54 +0x20f | |
Goroutine 17 (finished) created at: | |
github.com/jdevelop/go-rf5v-transceiver/manchester.TestReadWriteFrame() | |
/Users/oleg/pp/backend/src/github.com/jdevelop/go-rf5v-transceiver/manchester/manchester_test.go:237 +0x393 | |
testing.tRunner() | |
/usr/local/Cellar/go/1.8.3/libexec/src/testing/testing.go:657 +0x107 | |
================== | |
assert.go:24: got 31 want 155 Preamble failed | |
assert.go:24: got 0 want 2 Size failed | |
assert.go:24: got [] want [65 65] Data failed | |
assert.go:24: got 0 want 2841648573 Checksum failed | |
--- FAIL: TestReadWriteFrame (0.08s) | |
testing.go:610: race detected during execution of test | |
FAIL | |
FAIL github.com/jdevelop/go-rf5v-transceiver/manchester 0.546s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment