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

sometims filemarshal_test.go TestEncodeDecode fails at random #8

Open
GoogleCodeExporter opened this issue Mar 28, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. cd %GOPATH%\src\code.google.com\p\rog-go\exp\filemarshal
2. go test

What is the expected output? What do you see instead?
tests passes

Sometimes the test passes and sometimes it fails with a few different errors.

d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
PASS
ok      code.google.com/p/rog-go/exp/filemarshal        0.125s

d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.01 seconds)
        filemarshal_test.go:177: json: mismatchedReceiver: decode failed:json: cannot unmarshal number into Go value of type filemarshal.X2
FAIL
exit status 1
FAIL    code.google.com/p/rog-go/exp/filemarshal        0.125s

d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
PASS
ok      code.google.com/p/rog-go/exp/filemarshal        0.146s

d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.01 seconds)
        filemarshal_test.go:177: json: noFiles: decode failed:json: cannot unmarshal object into Go value of type int
FAIL
exit status 1
FAIL    code.google.com/p/rog-go/exp/filemarshal        0.209s

d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
PASS
ok      code.google.com/p/rog-go/exp/filemarshal        0.126s

d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.01 seconds)
        filemarshal_test.go:177: gob: noFiles: decode failed:gob: decoding into local type *int, received remote type One = struct { S string; F File = struct {
 Name string; }; }
FAIL
exit status 1
FAIL    code.google.com/p/rog-go/exp/filemarshal        0.192s

d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
PASS
ok      code.google.com/p/rog-go/exp/filemarshal        0.169s

d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
PASS
ok      code.google.com/p/rog-go/exp/filemarshal        0.126s

d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.00 seconds)
        filemarshal_test.go:177: gob: oneFile: decode failed:gob: type mismatch: no fields matched compiling decoder for One
FAIL
exit status 1
FAIL    code.google.com/p/rog-go/exp/filemarshal        0.124s

d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.01 seconds)
        filemarshal_test.go:177: gob: noFiles: decode failed:gob: decoding into local type *int, received remote type One = struct { S string; F File = struct {
 Name string; }; }
FAIL
exit status 1
FAIL    code.google.com/p/rog-go/exp/filemarshal        0.112s

d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.00 seconds)
        filemarshal_test.go:177: gob: largeFile: decode failed:gob: type mismatch in decoder: want struct type filemarshal.File; got non-struct
FAIL
exit status 1
FAIL    code.google.com/p/rog-go/exp/filemarshal        0.118s


What version of the product are you using? On what operating system?
changeset:   154:b2e2eb7b9a8f
go version go1.3.1 windows/amd64
Windows 7 64-bit

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 5 Sep 2014 at 2:43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant