Skip to content

TestDiff/mixed-slice-map fails randomly #95

Open
@zhsj

Description

@zhsj
=== RUN   TestDiff/mixed-slice-map
    diff_test.go:645: 
                Error Trace:    diff_test.go:645
                Error:          Not equal: 
                                expected: []string{"1", "\xa4name"}
                                actual  : []string{"1", "\xa4type"}
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -2,3 +2,3 @@
                                  (string) (len=1) "1",
                                - (string) (len=5) "\xa4name"
                                + (string) (len=5) "\xa4type"
                                 }
                Test:           TestDiff/mixed-slice-map
    diff_test.go:647: 
                Error Trace:    diff_test.go:647
                Error:          Not equal: 
                                expected: string("name2")
                                actual  : []string([]string{"null", "string"})
                Test:           TestDiff/mixed-slice-map
    diff_test.go:645: 
                Error Trace:    diff_test.go:645
                Error:          Not equal: 
                                expected: []string{"1", "\xa4type"}
                                actual  : []string{"1", "\xa4name"}
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -2,3 +2,3 @@
                                  (string) (len=1) "1",
                                - (string) (len=5) "\xa4type"
                                + (string) (len=5) "\xa4name"
                                 }
                Test:           TestDiff/mixed-slice-map
    diff_test.go:647: 
                Error Trace:    diff_test.go:647
                Error:          Not equal: 
                                expected: []string([]string{"null", "string"})
                                actual  : string("name2")
                Test:           TestDiff/mixed-slice-map

It can be reproduced by run go test -count=10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions