Check error
This commit is contained in:
parent
c956826073
commit
d705570870
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ func TestBuildStartError(t *testing.T) {
|
|||
env.mock.EXPECT().StartBuild(gomock.Any(), gomock.Any(), gomock.Any()).Return(fmt.Errorf("foo bar error"))
|
||||
|
||||
_, _, err := env.client.StartBuild(ctx, &api.BuildRequest{})
|
||||
require.Error(t, err)
|
||||
require.Contains(t, err.Error(), "foo bar error")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue