test(http): remove spurious byte cast

pull/10616/head
Chris Goller 2018-10-23 08:47:07 -05:00
parent a6464d5010
commit 3072c0e3a5
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ func TestValidSwagger(t *testing.T) {
if err != nil {
t.Fatalf("unable to read swagger specification: %v", err)
}
swagger, err := openapi3.NewSwaggerLoader().LoadSwaggerFromYAMLData([]byte(data))
swagger, err := openapi3.NewSwaggerLoader().LoadSwaggerFromYAMLData(data)
if err != nil {
t.Fatalf("unable to load swagger specification: %v", err)
}