Skip to content

gopherjs test always fails with deadlock #815

Closed
@jezell

Description

@jezell

Create a sample test that does nothing

package tmp

import (
	"testing"
)

func Test(t *testing.T) {
}

run gopherjs test and though the test is marked as passing, the run fails

=== RUN   Test
--- PASS: Test (0.00s)
PASS
fatal error: all goroutines are asleep - deadlock!
FAIL	tmp	0.429s

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