Skip to content

Commit

Permalink
[Integration testing] Remove AltErr and only expect 400 from ES bulk …
Browse files Browse the repository at this point in the history
…API (#4012)

* Remove AltErr

* Fixed error type

(cherry picked from commit 1ae9ab6)

# Conflicts:
#	internal/pkg/bulk/bulk_integration_test.go
  • Loading branch information
ycombinator authored and mergify[bot] committed Oct 22, 2024
1 parent fc71697 commit 0115e46
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/pkg/bulk/bulk_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ func TestBulkCreate(t *testing.T) {
Name: "Invalid utf-8",
Index: string([]byte{0xfe, 0xfe, 0xff, 0xff}),
Err: es.ErrElastic{
<<<<<<< HEAD

Check failure on line 72 in internal/pkg/bulk/bulk_integration_test.go

View workflow job for this annotation

GitHub Actions / lint (linux)

syntax error: unexpected <<, expected expression
Status: 500,
Type: "json_parse_exception",
=======
Status: 400,
Type: "parse_exception",
>>>>>>> 1ae9ab6 ([Integration testing] Remove AltErr and only expect 400 from ES bulk API (#4012))

Check failure on line 78 in internal/pkg/bulk/bulk_integration_test.go

View workflow job for this annotation

GitHub Actions / lint (linux)

syntax error: unexpected ] in composite literal; possibly missing comma or }

Check failure on line 78 in internal/pkg/bulk/bulk_integration_test.go

View workflow job for this annotation

GitHub Actions / lint (linux)

invalid character U+0023 '#'
},

Check failure on line 79 in internal/pkg/bulk/bulk_integration_test.go

View workflow job for this annotation

GitHub Actions / lint (linux)

syntax error: unexpected comma after top level declaration
},
{
Expand Down Expand Up @@ -100,7 +105,11 @@ func TestBulkCreate(t *testing.T) {
// Create
id, err := bulker.Create(ctx, test.Index, test.ID, sampleData)
if !EqualElastic(test.Err, err) {
<<<<<<< HEAD

Check failure on line 108 in internal/pkg/bulk/bulk_integration_test.go

View workflow job for this annotation

GitHub Actions / lint (linux)

syntax error: unexpected <<, expected }
t.Fatal(err)
=======

Check failure on line 110 in internal/pkg/bulk/bulk_integration_test.go

View workflow job for this annotation

GitHub Actions / lint (linux)

syntax error: unexpected ==, expected }
t.Fatalf("expected error: %+v, got: %+v", test.Err, err)
>>>>>>> 1ae9ab6 ([Integration testing] Remove AltErr and only expect 400 from ES bulk API (#4012))

Check failure on line 112 in internal/pkg/bulk/bulk_integration_test.go

View workflow job for this annotation

GitHub Actions / lint (linux)

invalid character U+0023 '#'
}
if err != nil {
return
Expand Down

0 comments on commit 0115e46

Please sign in to comment.