data disk
Namespace of the disk controls: disk.fail("storage-1", 0.05).
Example:
use std.test { disk }
test sim "flaky disk" seeds 1..=2 {
disk.fail("storage-1", 0.05)
}pub(api) data diskSince. 1.0.0-beta
Methods
r | ()Probability (0..1) that a write or sync of the node's disk fails (a failed write may leave a torn prefix). |
Defined in: std/test/test.oxl:269