mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 18:19:36 +00:00
Merge pull request #628 from alrs/fix-swallowed-test-errors
Fix swallowed errors in server package tests
This commit is contained in:
@@ -227,6 +227,7 @@ func TestIgnition_BrokenStore(t *testing.T) {
|
||||
_, err = srv.IgnitionGet(context.Background(), &pb.IgnitionGetRequest{Name: fake.IgnitionYAMLName})
|
||||
assert.Error(t, err)
|
||||
err = srv.IgnitionDelete(context.Background(), &pb.IgnitionDeleteRequest{Name: fake.IgnitionYAMLName})
|
||||
assert.Error(t, err)
|
||||
}
|
||||
|
||||
func TestGenericCRUD(t *testing.T) {
|
||||
@@ -262,4 +263,6 @@ func TestGeneric_BrokenStore(t *testing.T) {
|
||||
_, err = srv.GenericGet(context.Background(), &pb.GenericGetRequest{Name: fake.GenericName})
|
||||
assert.Error(t, err)
|
||||
err = srv.GenericDelete(context.Background(), &pb.GenericDeleteRequest{Name: fake.GenericName})
|
||||
|
||||
assert.Error(t, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user