Skip to content

Commit

Permalink
Fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-laterman committed Sep 19, 2024
1 parent 3750daa commit 6e582bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/pkg/bulk/bulk_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func TestBulkCreate(t *testing.T) {
Name: "Invalid utf-8",
Index: string([]byte{0xfe, 0xfe, 0xff, 0xff}),
Err: es.ErrElastic{
Status: 500,
Type: "json_parse_exception",
Status: 400,
Type: "parse_exception",
},
},
{
Expand Down Expand Up @@ -100,7 +100,7 @@ func TestBulkCreate(t *testing.T) {
// Create
id, err := bulker.Create(ctx, test.Index, test.ID, sampleData)
if !EqualElastic(test.Err, err) {
t.Fatal(err)
t.Fatalf("expected error: %+v, got: %+v", test.Err, err)
}
if err != nil {
return
Expand Down

0 comments on commit 6e582bb

Please sign in to comment.