Skip to content

Commit ebd3907

Browse files
committed
chore: attempt 2 to fix build
1 parent 47b3467 commit ebd3907

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Unreleased
1+
## 2.14.0 [Unreleased]
22

33
### Fixes
44
- [#403](https://github.com/influxdata/influxdb-client-go/pull/403) Custom checks de/serialization to allow calling server Check API

api/checks_test.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ func TestCreateGetDeleteDeadmanCheck(t *testing.T) {
118118
require.Nil(t, err)
119119
dc := validateDC(t, nc, *org.Id)
120120

121-
checkId := dc.Id
122-
gp := domain.GetChecksIDAllParams{CheckID: *checkId}
121+
gp := domain.GetChecksIDAllParams{CheckID: *dc.Id}
123122

124123
c, err := client.APIClient().GetChecksID(context.Background(), &gp)
125124
require.Nil(t, err)
@@ -306,13 +305,13 @@ func TestGetChecks(t *testing.T) {
306305
assert.Nil(t, checks.Checks)
307306
}
308307

309-
func validateDC(t *testing.T, nc domain.Check, orgId string) *domain.DeadmanCheck {
308+
func validateDC(t *testing.T, nc domain.Check, orgID string) *domain.DeadmanCheck {
310309
require.NotNil(t, nc)
311310
require.Equal(t, "deadman", nc.Type())
312311
dc := nc.(*domain.DeadmanCheck)
313312
require.NotNil(t, dc)
314313
assert.Equal(t, "DeadmanCheck test", dc.Name)
315-
assert.Equal(t, orgId, dc.OrgID)
314+
assert.Equal(t, orgID, dc.OrgID)
316315
assert.Equal(t, msg, *dc.StatusMessageTemplate)
317316
assert.Equal(t, flux, *dc.Query.Text)
318317
assert.Equal(t, every, *dc.Every)
@@ -324,13 +323,13 @@ func validateDC(t *testing.T, nc domain.Check, orgId string) *domain.DeadmanChec
324323
return dc
325324
}
326325

327-
func validateTC(t *testing.T, check domain.Check, orgId string) *domain.ThresholdCheck {
326+
func validateTC(t *testing.T, check domain.Check, orgID string) *domain.ThresholdCheck {
328327
require.NotNil(t, check)
329328
require.Equal(t, "threshold", check.Type())
330329
tc := check.(*domain.ThresholdCheck)
331330
require.NotNil(t, tc)
332331
assert.Equal(t, "ThresholdCheck test", tc.Name)
333-
assert.Equal(t, orgId, tc.OrgID)
332+
assert.Equal(t, orgID, tc.OrgID)
334333
assert.Equal(t, msg, *tc.StatusMessageTemplate)
335334
assert.Equal(t, flux, *tc.Query.Text)
336335
assert.Equal(t, every, *tc.Every)

0 commit comments

Comments
 (0)