Skip to content

Commit

Permalink
test(hass/api): update ExecuteRequest test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Nov 28, 2023
1 parent 1f418c0 commit 6bcfc0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 192 deletions.
15 changes: 8 additions & 7 deletions internal/hass/api/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,25 +107,26 @@ func TestExecuteRequest(t *testing.T) {
return RequestTypeUpdateSensorStates
},
}
responseCh := make(chan interface{}, 1)

type args struct {
ctx context.Context
request Request
responseCh chan interface{}
ctx context.Context
request Request
}
tests := []struct {
name string
args args
want chan interface{}
}{
{
name: "default test",
args: args{ctx: ctx, request: mockReq, responseCh: responseCh},
args: args{ctx: ctx, request: mockReq},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
ExecuteRequest(tt.args.ctx, tt.args.request, tt.args.responseCh)
ExecuteRequest(tt.args.ctx, tt.args.request)
// if got := ExecuteRequest(tt.args.ctx, tt.args.request); !reflect.DeepEqual(got, tt.want) {
// t.Errorf("ExecuteRequest() = %v, want %v", got, tt.want)
// }
})
}
}
185 changes: 0 additions & 185 deletions internal/hass/sensor/sensor_test.go

This file was deleted.

0 comments on commit 6bcfc0a

Please sign in to comment.