Skip to content

Commit

Permalink
test: fix env service unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gibiw committed Jun 11, 2024
1 parent 7752768 commit 569c0bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/env/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func TestService_CreateEnvironment(t *testing.T) {
errCreate: nil,
createUse: false,
errGet: errors.New("error"),
errMessage: "error",
errMessage: "failed to get environments: error",
},
{
name: "failed create environment",
Expand Down Expand Up @@ -128,7 +128,7 @@ func TestService_CreateEnvironment(t *testing.T) {

srv := NewService(f.client)
got, err := srv.CreateEnvironment(context.Background(), tt.args.pc, tt.args.n, tt.args.d, tt.args.s, tt.args.h)
if (err != nil) != tt.wantErr {
if err != nil {
if !tt.wantErr {
t.Errorf("CreateEnvironment() error = %v, wantErr %v", err, tt.wantErr)
return
Expand Down

0 comments on commit 569c0bb

Please sign in to comment.