Skip to content

Commit

Permalink
fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Nov 8, 2024
1 parent 02e6806 commit 37a4aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1178,15 +1178,6 @@ def test_get_errors_slice() -> None:
type=ErrorRecoveryType.CONTINUE_WITH_ERROR,
)
subject.handle_action(fail_2_setup)
fail_3_setup = actions.FailCommandAction(
command_id="command-id-3",
running_command=subject_view.get("command-id-3"),
error_id="error-id-2",
failed_at=datetime(year=2023, month=3, day=3),
error=errors.ProtocolEngineError(message="oh hell no"),
notes=[],
type=ErrorRecoveryType.FAIL_RUN,
)

result = subject_view.get_errors_slice(cursor=1, length=3)

Expand Down
3 changes: 2 additions & 1 deletion robot-server/tests/persistence/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
command VARCHAR NOT NULL,
command_intent VARCHAR NOT NULL,
command_error VARCHAR,
command_status VARCHAR NOT NULL,
PRIMARY KEY (row_id),
FOREIGN KEY(run_id) REFERENCES run (id)
)
Expand All @@ -124,7 +125,7 @@
CREATE INDEX ix_protocol_protocol_kind ON protocol (protocol_kind)
""",
"""
CREATE INDEX ix_run_command_command_error ON run_command (command_error)
CREATE INDEX ix_run_run_id_index_in_run_command_status ON run_command (run_id, index_in_run, command_status)
""",
"""
CREATE INDEX ix_run_command_command_intent ON run_command (command_intent)
Expand Down

0 comments on commit 37a4aff

Please sign in to comment.