MCPcopy
hub / github.com/gotify/server / TestDatabaseFailure

Method TestDatabaseFailure

api/health_test.go:45–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func (s *HealthSuite) TestDatabaseFailure() {
46 s.db.Close()
47 s.a.Health(s.ctx)
48 test.BodyEquals(s.T(), model.Health{Health: model.StatusOrange, Database: model.StatusRed}, s.recorder)
49}

Callers

nothing calls this directly

Calls 3

BodyEqualsFunction · 0.92
HealthMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected