Skip to content

Commit

Permalink
Test fixes now that server has been upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
jmigueprieto committed Nov 18, 2024
1 parent 3891d83 commit a7cb272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration_tests/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestRetryNotFound(t *testing.T) {
assert.Error(t, err, "Retry is expected to return an error")

if swaggerErr, ok := err.(client.GenericSwaggerError); ok {
assert.Equal(t, 500, swaggerErr.StatusCode()) //TODO on test server update, should be a 404
assert.Equal(t, 404, swaggerErr.StatusCode())
} else {
assert.Fail(t, "err is not of type GenericSwaggerError")
}
Expand Down Expand Up @@ -74,7 +74,7 @@ func TestUpdateTaskByRefName(t *testing.T) {
err := executor.UpdateTaskByRefName("task_ref", notFoundWorkflowId, model.CompletedTask, map[string]interface{}{})
assert.Error(t, err, "UpdateTaskByRefName is expected to return an error")
if swaggerErr, ok := err.(client.GenericSwaggerError); ok {
assert.Equal(t, 500, swaggerErr.StatusCode()) //TODO on test server update, should be a 404
assert.Equal(t, 404, swaggerErr.StatusCode())
} else {
assert.Fail(t, "err is not of type GenericSwaggerError")
}
Expand Down

0 comments on commit a7cb272

Please sign in to comment.