mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
Fixing channel test issue for spec info.
code never runs as test returns fast.
This commit is contained in:
@@ -2,6 +2,5 @@
|
||||
|
||||

|
||||
[](https://codecov.io/gh/pb33f/libopenap)
|
||||
[](https://goreportcard.com/report/github.com/pb33f/libopenap)
|
||||
|
||||
A place for up to date, modern golang OpenAPI models and utilities.
|
||||
|
||||
@@ -130,6 +130,10 @@ func TestExtractSpecInfo_OpenAPI3(t *testing.T) {
|
||||
assert.Nil(t, e)
|
||||
assert.Equal(t, utils.OpenApi3, r.SpecType)
|
||||
assert.Equal(t, "3.0.1", r.Version)
|
||||
|
||||
<-r.JsonParsingChannel
|
||||
assert.Greater(t, len(*r.SpecJSONBytes), 0)
|
||||
|
||||
}
|
||||
|
||||
func TestExtractSpecInfo_OpenAPIWat(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user