state/apiserver/uniter: tear down test panics if there is a test failure

Bug #1337050 reported by Dave Cheney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Dave Cheney

Bug Description

[LOG] 0:00.183 DEBUG juju.state connection established
uniter_test.go:54:
    s.JujuConnSuite.SetUpTest(c)
/home/ubuntu/juju-core_1.19.5/src/github.com/juju/juju/juju/testing/conn.go:229:
    c.Assert(err, gc.IsNil)
... value *errors.errorString = &errors.errorString{s:"cannot create database index: local error: bad record MAC"} ("cannot create database index: local error: bad record MAC")

----------------------------------------------------------------------
PANIC: uniter_test.go:1: uniterSuite.TearDownTest

... Panic: runtime error: invalid memory address or nil pointer dereference (PC=0x4146B6)

/usr/lib/go/src/pkg/runtime/panic.c:248
  in panic
/usr/lib/go/src/pkg/runtime/panic.c:482
  in panicstring
/usr/lib/go/src/pkg/runtime/os_linux.c:234
  in sigpanic
/home/ubuntu/juju-core_1.19.5/src/github.com/juju/juju/state/state.go:1494
  in State.SetAdminMongoPassword
/home/ubuntu/juju-core_1.19.5/src/github.com/juju/juju/juju/testing/conn.go:270
  in JujuConnSuite.tearDownConn
/home/ubuntu/juju-core_1.19.5/src/github.com/juju/juju/juju/testing/conn.go:94
  in JujuConnSuite.TearDownTest
/usr/lib/go/src/pkg/runtime/asm_amd64.s:338
  in call16

----------------------------------------------------------------------
PANIC: uniter_test.go:1026: uniterSuite.TestRelationById

... Panic: Fixture has panicked (see related PANIC)
OOPS: 33 passed, 1 FAILED, 1 FIXTURE-PANICKED, 12 MISSED
--- FAIL: Test (14.83 seconds)
FAIL
FAIL github.com/juju/juju/state/apiserver/uniter 14.990s

Revision history for this message
Dave Cheney (dave-cheney) wrote :
Changed in juju-core:
status: New → In Progress
Changed in juju-core:
status: In Progress → Fix Committed
milestone: none → next-stable
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: next-stable → 1.21-alpha1
Curtis Hovey (sinzui)
Changed in juju-core:
importance: Undecided → High
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.