Skip to content

cmd/go: go test stale code #12074

Closed
Closed
@Vellocet

Description

@Vellocet

I am running go 1.4.1
My os is ubuntu server 14.04

When running two different unit tests with "go test", I get unexpected results, as if it has not rebuilding packages that have changed.

This has only happened twice so far.
The first time go test complained about an import cycle that no longer existed. After poking at the code for a bit, it suddenly starts running again. I revert all of my changes and it continues to work fine.

The second time I had a test which json marshals a struct, one of the elements was missing in the marshaled string. When I changed the order of the elements of the struct, the element appeared in the string. When I reverted it, it continued to work.

I haven't been able to reproduce this bug as the code currently works fine, and only breaks temporarily. This has also only happened with those two tests. All of my other tests work as expected when I change the code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions