Mark faulty device in one transaction

Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
This commit is contained in:
Maksym Pavlenko
2019-07-30 16:03:09 -07:00
parent 878a3205cd
commit 4d5a0e19eb
3 changed files with 21 additions and 20 deletions

View File

@@ -162,7 +162,7 @@ func TestPoolMetadata_MarkFaulty(t *testing.T) {
err := store.AddDevice(testCtx, info)
assert.NilError(t, err)
err = store.MarkFaulty(testCtx, info)
err = store.MarkFaulty(testCtx, "test")
assert.NilError(t, err)
saved, err := store.GetDevice(testCtx, info.Name)