@@ -118,8 +118,7 @@ func TestCreateGetDeleteDeadmanCheck(t *testing.T) {
118
118
require .Nil (t , err )
119
119
dc := validateDC (t , nc , * org .Id )
120
120
121
- checkId := dc .Id
122
- gp := domain.GetChecksIDAllParams {CheckID : * checkId }
121
+ gp := domain.GetChecksIDAllParams {CheckID : * dc .Id }
123
122
124
123
c , err := client .APIClient ().GetChecksID (context .Background (), & gp )
125
124
require .Nil (t , err )
@@ -306,13 +305,13 @@ func TestGetChecks(t *testing.T) {
306
305
assert .Nil (t , checks .Checks )
307
306
}
308
307
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 {
310
309
require .NotNil (t , nc )
311
310
require .Equal (t , "deadman" , nc .Type ())
312
311
dc := nc .(* domain.DeadmanCheck )
313
312
require .NotNil (t , dc )
314
313
assert .Equal (t , "DeadmanCheck test" , dc .Name )
315
- assert .Equal (t , orgId , dc .OrgID )
314
+ assert .Equal (t , orgID , dc .OrgID )
316
315
assert .Equal (t , msg , * dc .StatusMessageTemplate )
317
316
assert .Equal (t , flux , * dc .Query .Text )
318
317
assert .Equal (t , every , * dc .Every )
@@ -324,13 +323,13 @@ func validateDC(t *testing.T, nc domain.Check, orgId string) *domain.DeadmanChec
324
323
return dc
325
324
}
326
325
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 {
328
327
require .NotNil (t , check )
329
328
require .Equal (t , "threshold" , check .Type ())
330
329
tc := check .(* domain.ThresholdCheck )
331
330
require .NotNil (t , tc )
332
331
assert .Equal (t , "ThresholdCheck test" , tc .Name )
333
- assert .Equal (t , orgId , tc .OrgID )
332
+ assert .Equal (t , orgID , tc .OrgID )
334
333
assert .Equal (t , msg , * tc .StatusMessageTemplate )
335
334
assert .Equal (t , flux , * tc .Query .Text )
336
335
assert .Equal (t , every , * tc .Every )
0 commit comments