Skip to content

Commit

Permalink
[updatecli] update elastic stack version for testing 9.0.0-b49e55df-S…
Browse files Browse the repository at this point in the history
…NAPSHOT (#3971)

* chore: Update snapshot.yml

Made with ❤️️ by updatecli

* Fix broken integration test

* fix condition

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: michel-laterman <[email protected]>
  • Loading branch information
github-actions[bot] and michel-laterman authored Oct 15, 2024
1 parent fe5697b commit 1eefc69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev-tools/integration/.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# If you use change this version without a pinned one, please update
# .ci/bump-elastic-stack-snapshot.yml or .github/workflows/bump-golang.yml
ELASTICSEARCH_VERSION=9.0.0-070836bc-SNAPSHOT
ELASTICSEARCH_VERSION=9.0.0-b49e55df-SNAPSHOT
ELASTICSEARCH_USERNAME=elastic
ELASTICSEARCH_PASSWORD=changeme
TEST_ELASTICSEARCH_HOSTS=localhost:9200
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/bulk/bulk_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestBulkCreate(t *testing.T) {
},
AltErr: es.ErrElastic{
Status: 400,
Type: "json_parse_exception",
Type: "parse_exception",
},
},
{
Expand Down Expand Up @@ -106,7 +106,7 @@ func TestBulkCreate(t *testing.T) {
id, err := bulker.Create(ctx, test.Index, test.ID, sampleData)
if !EqualElastic(test.Err, err) {
if test.AltErr == nil || !EqualElastic(test.AltErr, err) {
t.Fatalf("expected error: %+v, got: %+v", test.Err, err)
t.Fatalf("expected error: %+v (alt: %+v), got: %+v", test.Err, test.AltErr, err)
}
}
if err != nil {
Expand Down

0 comments on commit 1eefc69

Please sign in to comment.