olivere / elastic

Deprecated: Use the official Elasticsearch client for Go at https://github.com/elastic/go-elasticsearch
https://olivere.github.io/elastic/
MIT License
7.39k stars 1.15k forks source link

elastic OpenPointInTime have error: request body is required #1595

Closed wednesdaysunny closed 2 years ago

wednesdaysunny commented 2 years ago

Please use the following questions as a guideline to help me answer your issue/question without further inquiry. Thank you.

Which version of Elastic are you using?

[ ] elastic.v7 (for Elasticsearch 7.x)

the code is at pit_test.go, and the test function is TestPointInTimeOpenAndClose.

When I run test, it report request body is required

olivere commented 2 years ago

I'm not sure I understand. I just tried to run that test, and it succeeded.

$ go test -v -run=PointInTimeOpenAndClose
=== RUN   TestPointInTimeOpenAndClose
--- PASS: TestPointInTimeOpenAndClose (0.76s)
PASS
ok      github.com/olivere/elastic/v7   0.906s