Fail more explicitely in cluster state tests

Co-authored-by: Leo Antunes <leo@costela.net>
This commit is contained in:
kaiyou 2020-05-13 10:42:37 +02:00 committed by Leo Antunes
parent e9b9239eae
commit 66b0321bf7
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ func Test_state_save_soad(t *testing.T) {
}, },
} }
cluster.state.save() if err := cluster.state.save(); err != nil {
t.Error(err)
}
loaded := &state{} loaded := &state{}
loadState(loaded) loadState(loaded)