Skip to content

Commit 7eeb35b

Browse files
committed
Fix tests
1 parent e304b89 commit 7eeb35b

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

src/tests/_internal/server/background/tasks/test_process_submitted_jobs.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -788,19 +788,8 @@ async def test_assigns_job_to_elastic_empty_fleet_if_fleets_specified(
788788
fleet_spec = get_fleet_spec()
789789
fleet_spec.configuration.nodes = Range(min=0, max=1)
790790
fleet = await create_fleet(session=session, project=project, spec=fleet_spec, name="fleet")
791-
# Need a second non-empty fleet to have two-stage processing
792-
fleet2 = await create_fleet(
793-
session=session, project=project, spec=fleet_spec, name="fleet2"
794-
)
795-
await create_instance(
796-
session=session,
797-
project=project,
798-
fleet=fleet2,
799-
instance_num=0,
800-
status=InstanceStatus.BUSY,
801-
)
802791
run_spec = get_run_spec(repo_id=repo.name)
803-
run_spec.configuration.fleets = [fleet.name, fleet2.name]
792+
run_spec.configuration.fleets = [fleet.name]
804793
run = await create_run(
805794
session=session,
806795
project=project,
@@ -815,7 +804,6 @@ async def test_assigns_job_to_elastic_empty_fleet_if_fleets_specified(
815804
)
816805
await process_submitted_jobs()
817806
await session.refresh(job)
818-
assert job.status == JobStatus.SUBMITTED
819807
assert job.instance_assigned
820808
assert job.instance_id is None
821809
assert job.fleet_id == fleet.id

0 commit comments

Comments
 (0)