newStorage

abstract fun newStorage(): RaftStorage

Returns a fresh, empty RaftStorage instance.

Called once per test — each test drives its own independent storage. The instance must start with term() == 0L, votedFor() == null, and entries() == emptyList().