finishes IsActive tests
This commit is contained in:
parent
27c2ad77c8
commit
60ac9b7400
@ -178,6 +178,15 @@ func TestIsActive(t *testing.T) {
|
|||||||
}
|
}
|
||||||
Unmask(ctx, unit, Options{UserMode: false})
|
Unmask(ctx, unit, Options{UserMode: false})
|
||||||
})
|
})
|
||||||
|
t.Run(fmt.Sprintf("check masked"), func(t *testing.T) {
|
||||||
|
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
|
||||||
|
defer cancel()
|
||||||
|
_, err := IsActive(ctx, "nonexistant", Options{UserMode: false})
|
||||||
|
if err != nil {
|
||||||
|
t.Errorf("error is %v, but should have been %v", err, ErrDoesNotExist)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Runs through all defined Properties in parallel and checks for error cases
|
// Runs through all defined Properties in parallel and checks for error cases
|
||||||
|
Loading…
x
Reference in New Issue
Block a user