...
1# https://golang.org/issue/45863: a typo in a test package leading to an
2# import cycle should be diagnosed, instead of causing an infinite loop.
3# The failure mode of this test prior to the fix was a timeout or OOM crash.
4
5go list -e -test -deps ./datastore/sql
6
7-- go.mod --
8module golang.org/issue45863
9
10go 1.17
11-- datastore/datastore_health.go --
12package datastore
13
14import (
15 "golang.org/issue45863/datastore"
16 "golang.org/issue45863/datastore/sql"
17)
18-- datastore/sql/sql.go --
19package sql
20-- datastore/sql/sql_test.go --
21package sql
22
23import _ "golang.org/issue45863/datastore"
View as plain text