Ticket #723 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

buildbot.test.runs.test_db.Scheduling badly isolated

Reported by: dustin Owned by:
Priority: major Milestone: 0.8.0
Version: master Keywords:
Cc:

Description

If you run any of these tests twice, they complain:

===============================================================================
[ERROR]: buildbot.test.runs.test_db.Scheduling.test_immed2

Traceback (most recent call last):
  File "/home/dustin/code/buildbot/t/buildbot/buildbot/test/runs/test_db.py", line 366, in test_immed2
    def test_immed2(self): self.test_immediate()
  File "/home/dustin/code/buildbot/t/buildbot/buildbot/test/runs/test_db.py", line 299, in test_immediate
    m, cm, sm = self.build_harness("db/scheduler/immediate")
  File "/home/dustin/code/buildbot/t/buildbot/buildbot/test/runs/test_db.py", line 241, in build_harness
    db.create_db(spec)
  File "/home/dustin/code/buildbot/t/buildbot/buildbot/db.py", line 366, in create_db
    raise DBAlreadyExistsError("Refusing to touch an existing database")
buildbot.db.DBAlreadyExistsError: Refusing to touch an existing database

Change History

comment:1 Changed 3 years ago by Dustin J. Mitchell

  • Status changed from new to closed
  • Resolution set to fixed

clean up buildbot.test.runs.test_db.Scheduling's isolation

fixes #723

Changeset: 0e1cdbb25c57b46fdf93c8a0201d128def395533

comment:2 Changed 3 years ago by Dustin J. Mitchell

clean up buildbot.test.runs.test_db.Scheduling's isolation

fixes #723

Changeset: 0e1cdbb25c57b46fdf93c8a0201d128def395533

Note: See TracTickets for help on using tickets.